Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. use admin
  2. switched to db admin
  3. rs0:PRIMARY> db.createUser({user: "RootAdmin", pwd: "gauridara", roles: [ { role: "root", db: "admin" } ]});
  4. 2017-01-21T18:19:09.814+0000 E QUERY [main] Error: couldn't add user: not authorized on admin to execute comm
  5. and { createUser: "RootAdmin", pwd: "xxx", roles: [ { role: "root", db: "admin" } ], digestPassword: false, writ
  6. eConcern: { w: "majority", wtimeout: 300000.0 } } :
  7. _getErrorWithCode@src/mongo/shell/utils.js:25:13
  8. DB.prototype.createUser@src/mongo/shell/db.js:1290:15
  9. @(shell):1:1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement