Error Message: MongoError: bad auth Authentication failed through URI string

前端 未结 15 1922
终归单人心
终归单人心 2020-12-29 02:36

I\'m trying to connect to my mongoDB server via the connection string given to me by mongo:

"mongodb+srv://david:p         


        
15条回答
  •  我在风中等你
    2020-12-29 02:49

    This Happens because entered password is wrong.Because you are entering login password not cluster one.

    Solution ===> step 1. click Database Access From left Side Navigation of mongodb atlas page.

    step 2. select your username and and click to edit from right side.

    step 3. click to change password.

    step 4. click update user.

    During change password keep password only alphabetical because special characters need encoding.

    that's all now you can connect.

    Happy Coding.

提交回复
热议问题