Password mongodb
Hi All
I am following this article: https://severalnines.com/blog/high-availability-log-processing-graylog-mongodb-and-elasticsearch everything goes well until I try: mongo --host my_mongodb_0
/192
.168.55.121:27017 -u admin -p admin it doesn't how much I try with the correct password that I configured when creating the cluster but it's not taking it, error message:
.33.148:27017
2018-01-22T16:04:18.627+0000 E QUERY [thread1] Error: Authentication failed. :
DB.prototype._authOrThrow@src/mongo/shell/db.js:1441:20
@(auth):6:1
@(auth):1:2
Is there any ways of disabling password or any other workaround for this?
Regards
-
Official comment
Hi,
Could you try with the --authenticationDatabase flag? The command should be:
mongo --host my_mongodb_0/192.168.55.121:27017 -u admin -p admin --authenticationDatabase admin
ClusterControl creates an administrator user on "admin" database and login must be authenticated against that database. For more details check out https://docs.mongodb.com/manual/core/security-users/#user-authentication-database . I will update the blog post accordingly.
Regards,
AshrafComment actions
Please sign in to leave a comment.
Comments
1 comment