Created
March 30, 2017 16:33
-
-
Save moehandi/d778bc8e4995fbf1a827ff3ce5d4e8a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.createUser({ user: "campaigns", pwd: "password", roles: [{ role: "dbOwner", db: "campaigns"},{role:"readWrite",db: "campaigns"},{role: "dbAdmin",db: "campaigns"},{role:"userAdmin",db:"campaigns"} ] }) | |
| Successfully added user: { | |
| "user" : "campaigns", | |
| "roles" : [ | |
| { | |
| "role" : "dbOwner", | |
| "db" : "campaigns" | |
| }, | |
| { | |
| "role" : "readWrite", | |
| "db" : "campaigns" | |
| }, | |
| { | |
| "role" : "dbAdmin", | |
| "db" : "campaigns" | |
| }, | |
| { | |
| "role" : "userAdmin", | |
| "db" : "campaigns" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mantap