MongoDB: Can't connect to new replica set master

前端 未结 5 1629
南旧
南旧 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:20

    What I tried was:

    1. Create new user
    2. Made sure the username and password for my mongoURI when connecting my application is the same as the username and password for when I connect with the mongo shell.
    3. Run your connection string in your command line in your application.

提交回复
热议问题