Unable to connect to sandbox cluster from mongo shell

while using sandbox i am getting only two options - to use “short connection srv strings” and “standard connection string”.

below is the the link in using:
mongo “mongodb://cluster0-shard-00-00-hxdk8.mongodb.net:27017,cluster0-shard-00-01-hxdk8.mongodb.net:27017,cluster0-shard-00-02-hxdk8.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --ssl --authenticationDatabase admin --username m001-student --password m001-mongodb-basics

i am using the standard connection string but it does not work.
i get this error when using link in windows command promt:
‘mongo’ is not recognized as an internal or external command,
operable program or batch file.
directory is c:\users\vivek

you need to set your system path.

watch the video in chapter two concerning setting system path

1 Like