This post is out of date and here for archive purposes only.   June 4, 2014 Creating user accounts is a simple process. But if you’re not paying attention, there are a number of places you might be confounded along the way with MongoDB, including deprecated commands, new parameters, syntactical nuances, bugs, and incompatibilities.   Bugs Shell Methods vs. Database Commands If you come across “Error: 18 { ok: 0.0, errmsg: “auth failed”, code: 18 } at src/mongo/shell/db.js:1210” and you’re authenticating with the correct password, the account might have been created with a syntactical error. Can you spot the difference between db.runCommand() and db.createUser() below?

Continue Reading