Mongo DB:身份验证失败

时间:2016-06-29 12:31:12

标签: mongodb shell authentication login debian

我有两个问题。首先我无法登录我的MongoDB。我试过这种方式:Can't create backup mongodump with --db. Authentication failed但没有succsess。我尝试过不同的密码和用户,但我无法登录。我的Mongo Server在Debian 8服务器上运行。对于卸载和安装,我使用了本教程:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/。每次卸载后我都会启动debian new。

我可以删除密码吗?在conf数据中,我评论auth = true。我希望你能帮助我。

我收到此消息

MongoDB shell version: 3.2.7
connecting to: 127.0.0.1:27017/test
2016-06-29T12:30:01.079+0000 E QUERY    [thread1] Error: Authentication failed. :
DB.prototype._authOrThrow@src/mongo/shell/db.js:1441:20
@(auth):6:1
@(auth):1:2

exception: login failed

1 个答案:

答案 0 :(得分:0)

默认情况下,mongo上没有可能与系统权限有关的身份验证。

相关问题