Unable to connect with mongo cluster from command shell

Hi ,
I am getting this error while connecting to mongo class cluster.
C:\Users\muzaffar.umrani>mongo --nodb
MongoDB shell version v4.0.5

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
2019-01-13T15:29:48.424+0500 E QUERY [js] SyntaxError: missing ; before statement @(shell):1:6
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;
2019-01-13T15:30:22.034+0500 E QUERY [js] SyntaxError: missing ; before statement @(shell):1:6

Hi All,
I was doing the silly mistake and was using the command from previous lesson “mongo --nodb” and this command together, which was causing the error.

Regards,
Muzaffar

Hello @muzaffar
Sharing the comand that works for me. You should remove the " and try the command. I save the command in a .bat file in my M100 folder and run the bat file for ease.

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