我正在尝试将我的数据库导入到我的mongoLab数据库中,但它一直显示以下错误:
2016-10-19T21:05:49.183+0800 Failed: error connecting to db server: server returned error on SASL authentication step: Authentication failed.
-bash: vd: command not found我是这样运行我的命令的:
mongorestore -h 243253423.mlab.com:2131242 -d meteor -u <Username> -p <Password> /Users/directory/desktop/mongo/dump发布于 2017-08-21 19:37:08
我遇到了这个错误消息,我不确定这是您的具体问题,但这最终为我工作
mongorestore -d production-db \
-u myusername -p MyPassword \
--authenticationDatabase admin --host mydomain.com \
~/tmp/mongodump/local-production-db/(请务必检查防火墙sudo ufw status和net.bindIp sudo nano /etc/mongod.conf,以确认您拥有访问权限,并且您的mongo进程正在侦听外部端口)
https://stackoverflow.com/questions/40132508
复制相似问题