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 |
---|---|---|---|
High disk space usage | 3 | 508 | Nov 2024 |
No of conections more than configured maxPoolSize | 0 | 177 | Jul 2024 |
How to Restore Data to a Specific Point in Time Using a Delayed Replica set member? | 1 | 237 | Dec 2024 |
Disk Usage Issues Post MongoDB Upgrade on some Nodes | 1 | 53 | Nov 2024 |
TLS configuration problem with tlsCertificateKeyFile | 3 | 375 | Oct 2024 |