I’m working on a windows 10 machine. I have a problem connecting to the Atlas cluster for this class from mongo shell from the C:\Program Files\MongoDB\Server\4.2\bin directory. I typed in the connection string shown below:
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
(1)When I type in the connection string from the command prompt from MongoDB Enterprise>, I get this error message:
2019-09-27T10:32:46.480-0400 E QUERY [js] uncaught exception: SyntaxError: unexpected token: string literal :
@(shell):1:6
(2) When I type in the connection string from the mongo shell, I get this error message:
2019-09-27T10:13:44.761-0400 E QUERY [js] uncaught exception: SyntaxError: invalid increment/decrement operand :
@(shell):1:0
When I type show dbs, admin, config and local come up as 0.000GB