mongo login shell code example
Example 1: how to connect remote mongodb in cmd
mongo "mongodb://[email protected]:28015/?authSource=admin"
Example 2: mongo db shell user login
$ mongo admin -u uname -p 'password'
mongo "mongodb://[email protected]:28015/?authSource=admin"
$ mongo admin -u uname -p 'password'