Output 2: mongo -u admin -p -authenticationDatabase "admin"Ĭonnecting to: mongodb://127.0.0.1:27017/?authSource=admin&gssapiServiceName=mongodb This one will fail: $ mongo -u admin -p -authenticationDatabase "admin" This should create user in both admin db as well as my target db ( c2d): # mongo 127.0.0.1:27017 Check Database Access( on the left sidebar of mongo atlas dashboard), if you see a user, try changing the password(its not same as your login password), by.
0 Comments
Leave a Reply. |