What was the exact lesson that has the setup information in it to connect the mongo shell and compass?

Messed up my cluster or the connection to the cluster…
I’m not sure what or how I did it but I am not connecting to the cluster.

So, now I cannot query anything.

Which cluster you are trying to connect?Sandbox or Class
It may be in your notes or earlier logs
For class you can use
mongo “mongodb://m001-student:m001-mongodb-basics@cluster0-shard-00-00-jxeqq.mongodb.net:27017/?authSource=admin&replicaSet=Cluster0-shard-0&readPreference=primaryPreferred&appname=MongoDB%20Compass&ssl=true”
Try to frame your connect string if you know your 5 character cluster name
or Login to Atlas.You should get details of your cluster
For compass you would have created favorite
or if you know your cluster name fill in all fields and try again

1 Like

Hi @Elijah_04078,

I hope you found @Ramachandra_37567’s response helpful.

Please let me know if you are still having any issue.

Shubham Ranjan
Curriculum Services Engineer

Thank you all for your input. It ended up being the connection cluster somehow got changed from …01… to …02…

Not sure what that was all about but got things working again and finished up the entire course last night.

I appreciate your time and follow ups in this mistake of mine.

1 Like