Chapter 2 - Cannot connect with Mongo Shell but Compass connects


Can anyone assist? I am able to connect with Compass but cannot connect with Mongo Shell.

I may be wrong here but from the Screen shot I get a feeling that you issued the command to connect to MONGO Shell from the MONGO Shell. Looks like you are already connected to MONGO Shell



I am trying to connect to my Sandbox cluster which i named “Cluster0” from within Mongo Shell.

Shouldn’t i see something like this instead: Cluster0-shard-0:PRIMARY>

To confirm connectivity