MongoDB: Can't connect to new replica set master

前端 未结 5 1626
南旧
南旧 2021-01-14 06:54

Trying to set up MongoDB for my Node.JS application. I running this command:

mongo \"mongodb+srv://cluster0-gjc2u.mongodb.net/test\"  --username 

        
5条回答
  •  伪装坚强ぢ
    2021-01-14 07:28

    This resolution might be specific for the mLabs to MongoDB Atlas migration tool provided by Cloud MongoDB.

    My resolution was to:

    1. Re-create the user with the same user name
    2. Change from spesific mLabs grants to Atlas built-in roles
    3. Set new credentials, I also avoided using special chars.

    Good luck!

提交回复
热议问题