Trouble connecting to cluster

I can connect to Mongodb but and getting this message when trying to connect to the clusters
2019-01-14T12:50:36.249-0500 E QUERY [js] SyntaxError: missing ; before statement @(shell):1:clock6:

Here is what is on my terminal
$ 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-14T12:50:36.249-0500 E QUERY [js] SyntaxError: missing ; before statement @(shell):1:6

Hi T_Gayle_Christian_78750,

Please exit the mongo shell to run mongo... 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

Let me know if it works.

Kanika

Kanika,

That worked.

Thank you so much

Tamara

1 Like