M001 What is Mongodb

I generate the script below to connect to the Atlas cluster but I am unable to connect. Any input?

mongo “mongodb+srv://sandbox.pnmh4.mongodb.net/myFirstDatabase” --username m001-student

1 Like

We can help you better if you share the error message you have. A screenshot shows the context where and how you enter the command, so it might be more useful that simply the error message.

At first the command looks okay.

The standard m001 password does not seem to work. You may have choose another one.

2 Likes

The password is m001-mongodb-basics

1 Like

That is what I tried.

Did you allowed access from anywhere in the network security settings?

1 Like

It says bad authentication
Check if your userid/pwd is correct

2 Likes