I\'m trying to connect to my mongoDB server via the connection string given to me by mongo:
"mongodb+srv://david:p
This Happens because entered password is wrong.Because you are entering login password not cluster one.
Solution ===> step 1. click Database Access From left Side Navigation of mongodb atlas page.
step 2. select your username and and click to edit from right side.
step 3. click to change password.
step 4. click update user.
During change password keep password only alphabetical because special characters need encoding.
that's all now you can connect.
Happy Coding.