I have a very simple Mlab account and I'm trying to connect via command line with this command:
mongo server_name.mlab.com:port/inventory -u <dbuser> -p <dbpassword>
but I keep running into this problem:
2016-05-26T15:41:18.195+0200 Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18 } at src/mongo/shell/db.js:1210 exception: login failed
How do I get rid of this and how can I connect to mlab easily?
mLab
instance, you walk through some setup screens. One of them shows you exactly what version ofMongoDB
will be deployed. Try to ensure your localMongoDB
installation is at least to that version in order to avoid any unintended errors. – Significancy