Make sure you are using the database username and password not the account username and password from Mlab.
In MLab, formerly MongoLab, do the following
- Navigate to
Users Add Database User- Choose your username and password
Now you can test this on the shell with
mongo ds061374.mlab.com:61374/yourdb -u <dbuser> -p <dbpassword>