Cannot Connect to mongodb Atlas

when I copy paste link given : mongo “mongodb+srv://sandbox.d790l.mongodb.net/sample_airbnb” --username m001-student, it shows the following error even though I have created the cluster and username as mentioned in the course.

Also am able to connect from NoSQLBooster by using the following “mongodb+srv://m001-student:m001-mongodb-basics@sandbox.d790l.mongodb.net/sample_airbnb”.

Welcome to the community!

You have entered the command in wrong area of IDE
Enter it in terminal
Your connect string looks fine

1 Like