Cannot Connect to class Atlas

Hello, I am using Windows and I get this error in the command line when i try to connect to Our Class Atlas Cluster

Error:2019-01-16T08:56:41.228+0300 E QUERY [js] SyntaxError: missing ; before statement @(shell):1:6

MongoDB Enterprise > 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/100YWeatherSmall?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

Hello, Fajer_00780
I faced the similar issue when i was connecting Shell to cluster . To solve this please quit the shell using the command quit() and then copy your unique address and use it to connect .Hope this Helps!

1 Like

Your command prompt “MongoDB Enterprise>” seems to suggests that you are already connected to a some MongoDB database. Close that connection and then try to run the command.