uri = mongodb+srv://${username}:${password}@${cluster}/yourDatabase
So a while ago i made my first mongoDB connect for a project. I’ve changed my password and added 2-factor since then. via the browser i can login correctly. Via vscode, it’s been erroring with a ‘MongoServerError: bad auth : authentication failed’ i happened to stumble over the connection in the side bar. Surprisingly the one which works in the old password… what gives?
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Is it possible to add a node which does not have private network connectivity with other nodes? | 0 | 360 | May 2024 |
Cloud Manager Support past 4.2 questions | 0 | 441 | Jun 2024 |
MongoDB connects but timeouts after some time | 5 | 563 | 8d |
MongoDB failed after reboot | 0 | 70 | Oct 2024 |
Unauthorized - errmsg”:”not authorized on DB to execute command | 0 | 53 | Nov 2024 |