1
Failed to authenticate russell.harrower@admin with mechanism MONGODB-CR: AuthenticationFailed MONGODB-CR credentials missing in the user document.

现在我一直在使用旧版本的 MongoDB,并认为我会将最新版本放在我的新 ubuntu 主服务器上。但是,我现在在使用我设置的管理员用户时遇到问题。

use admin
db.createUser(
  {
    user: "siteUserAdmin",
    pwd: "password",
    roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
  }
)

但是,似乎当我使用 Robomongo 时,它决定说我不成功,当我查看日志时,我收到了上面的消息,有人可以让我知道我必须做什么才能登录。这是 RoboMongo 问题还是其他问题?

4

1 回答 1

1

如果您使用mongodump从以前的版本获取备份并mongorestore恢复新版本,它必须工作。实际上它对我有用。祝你好运!

http://docs.mongodb.org/manual/release-notes/3.0-scram/#continue-to-use-mongodb-cr

不幸的是,没有其他方法...

于 2015-05-15T21:46:44.550 回答