Recently installed mongodb3.1.4, and enabled authorization authentication, in DOS window operation without any problems, in order to maintain the convenience of downloading a client tool Robomongo 0.8.5, user name, password, such as configuration good solution test, the result of connection service is not a problem, permission verification did not pass , check the log, found a sentence: Failed to authenticate [e-mail protected] with mechanism mongodb-cr:authenticationfailed MONGODB-CR Credentials missing in the user document tried a variety of methods, Baidu searched all over no one can solve, no way can only ask Google, finally found in a foreign site is still the version of MongoDB database issue, query version Solution: In the non-privileged authentication state first, delete the existing user and, secondly, modify the version of the CurrentVersion, after the user operation steps: 1, delete users: Db.dropuser ("admin"); 2, Modify Version:db.system.version.update ({"_id": "Authschema"},{$set: {"CurrentVersion": 3}}); 3. Re-create the user:
DB. CreateUser({user:"admin",pwd:"admin",roles: [{"role": "Useradminanydatabase","db":"admin"},{"role":"ReadWrite", " db":"Test"}]})
4. Restart Mongdb Service, test again, finish the work.
Connect MongoDB 3.x Authorization failed solution using Robomongo (GO)