首页 文章

无法使用robomongo(0.9.0)和用户名和密码连接到mongo(3.4)?

提问于
浏览
0

我有一个带有cfg文件的mongo 3.4实例,因此:

systemLog:
 destination: file
 path: D:\Mongo\log\mongod.log
storage:
 dbPath: D:\Mongo\db

使用robomongo版本0.9.0我添加了一个用户:

enter image description here

enter image description here

现在,当我尝试连接到数据库时,我收到一个错误:

enter image description here

我检查过密码等似乎都是正确的:

enter image description here

没有使用auth所有工作按预期 .

我遇到了类似的问题Mongodb & Robomongo: Can't connect (authentication),但因为我有一个更新版本的客户端(0.9)支持SCRAM-SHA-1,这应该可行 .

我在这里错过了什么?

1 回答

  • 1

    看起来robobmongo中有一个错误 . 如果我使用控制台添加用户:

    db.createUser({user:"mongoUser", pwd:"***", roles:["userAdminAnyDatabase"]})
    

    验证有效 . 但我现在从robomongo得到一个错误:

    enter image description here

    当我尝试在管理员中扩展用户列表时 .

相关问题