I am not able to connect my sandbox cluster to mongo shell

hello, I am not able to connect my sandbox cluster to the mongo shell.when i paste my connection string in a command line, it not asking for password .my string is as below :

mongo “mongodb+srv://data001-lwpb8.mongodb.net/test” --username megha

Untitled
i am getting error.

The line MongoDB Entreprise > indicates that you are already in the mongo shell when you are trying to run the command mongo. You have to exit the mongo shell to start the mongo shell with your connection string.

1 Like

Hi @mkshah12,

As @steevej-1495 mentioned, you are already inside the mongo shell. Please exit out of it using this command :

exit

And then run the command for connecting to your sandbox cluster at the OS prompt.

Hope it helps!

~ Shubham