Mongo Atlas: Connection authentication failed with custom databases

后端 未结 4 2189
迷失自我
迷失自我 2021-02-19 21:37

I am trying the Mongo Atlas Cloud. I create a cluster and i am trying a connection with the mongo shell: (same problem with mongo drivers)

mongo mongodb://***-cl         


        
4条回答
  •  不知归路
    2021-02-19 21:41

    I also faced the same issue. "admin" user would be created at the time of db creation. If you forgot the password for the default admin user, then it is difficult to connect with the database and access the collections.

    You could create one more database user under "Security->Database Access" section and select "Atlas admin" as a role.

    If your password contains any special character, then this would be encrypted internally. Hence, use this link (https://www.urlencoder.org/) to encrypt your password (plain text) and use the encrypted string to establish a connection.

提交回复
热议问题