Difference between commands

Hey I cannot understand the difference between
mongo “mongodb+srv://okup-uibp0.mongodb.net/test” --username
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

The first one has been introduced 3.6 to simplify things. Refer the following for more information.


Hi @Shrey_46820,

I hope you found the link shared by @steevej-1495 helpful. However, if you still have any query then please feel free to get back to us.

Happy Learning :slight_smile:

Shubham Ranjan
Curriculum Support Engineer