How to login with specific user on mongodb code example Example: mongo db shell user login $ mongo admin -u uname -p 'password'