更新时间:2023-12-04 23:12:22
请确保您使用的是数据库username
和password
而不是Mlab的帐户username
和password
.
Make sure you are using the database username
and password
not the account username
and password
from Mlab.
在MLab(以前为MongoLab)中,执行以下操作
In MLab, formerly MongoLab, do the following
Users
Add Database User
Users
Add Database User
现在,您可以使用以下命令在Shell上进行测试
mongo ds061374.mlab.com:61374/yourdb -u <dbuser> -p <dbpassword>
Now you can test this on the shell with
mongo ds061374.mlab.com:61374/yourdb -u <dbuser> -p <dbpassword>