MongoDB: Can't connect to new replica set master

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

    I realise that "just wait a bit" isn't a terribly constructive answer, but I had the same issue and no luck in finding a solution, so left it for a couple hours and came back to find it working perfectly.

    The text that says your change has been deployed is misleading. Not sure why it takes several hours to kick in, but for reference I found this when using the M0 Sandbox cluster tier.

提交回复
热议问题