Connect to M001 RS database with sample collections from shell

Does anyone know the command to use when connecting to the M001 RS database with all of the sample collections form Chapter1 using the shell?

@Nick_02485 If you’re referring to the “class” cluster (not the sandbox one we created) I think it was this 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/100YWeatherSmall?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

Note this starts at the 100YWeatherSmall database.

HTH,
Mike

3 Likes

@Nick_02485

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

2 Likes

That is indeed the one I was looking for. Thanks guys.