Hi @kumar_gaurav007,
You are already inside the mongo shell and that’s why when you running the mongo ... connection string
command, it is throwing an error. You are supposed to run this command from your prompt.
In order to make it work, you need to exit out of the mongo shell by running the exit command.
exit
Once you are outside the mongo shell please run this command for connecting to the class atlas cluster.
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
Hope it helps!
If you have any other issue, please feel free to get back to us. Happy Learning
Thanks,
Shubham Ranjan
Curriculum Support Engineer