Unable to connect to class atlas cluster from mongo shell


I am trying to connect using the following command.

mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics
Please help me resolve this. I have been struck here for a while. Thank you

May be cut & paste issue.It says syntax error
I am able to connect to DB with the command you posted

MongoDB Enterprise Cluster0-shard-0:PRIMARY> db
MongoDB Enterprise Cluster0-shard-0:PRIMARY> use admin
switched to db admin
MongoDB Enterprise Cluster0-shard-0:PRIMARY> show dbs
100YWeatherSmall 0.128GB
admin 0.000GB

This is the command provided in the lecture notes and I am using the same.

You should fire the command at vagrant prompt
I see from your snapshot you are running at Entp DB prompt

vagrant@m103:/dataset$ mongo mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/test?replicaSet=Cluster0-shard-0 --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basiccs
MongoDB shell version v3.6.9

xeqq.mongodb.net:27017 (1 connections now open to cluster0-shard-00-02-jxeqq.mongodb.net:27017 with a 5 second timeout)
Implicit session: session { “id” : UUID(“27de1d6d-01f2-4e95-b3b4-3d7f97910a67”) }
MongoDB server version: 3.6.9
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db

Please double check

Thank you :slight_smile: I am able to connect

How did you fix this issue ? I am too getting below prompt at mango shell when I ran mango.exe and unable to connect to my atlas cluster.
I know, I am missing something. Could you please help?

What error are you getting?
Run the command at vagrant prompt

I have follow the steps still can’t connect to Atlas cluster from mongo shell. I am using window 10.After running it via Vagrant prompt with all parameters passed, I clicked enter no result appears. I am stuck here all night