Created
January 6, 2017 22:06
-
-
Save parvez/f98a08c0c35569b8459c8af9ef45eff3 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.dropAllUsers() | |
db.createUser( { user: "app_admin", pwd: "SECRET_PASSWORD", roles: [ { role: "userAdmin", db: "my_app" }, { role: "dbAdmin", db: "my_app" }, { role: "dbOwner", db: "my_app" } ] } ) | |
db.createUser( { user: "app_reporting", pwd: "SECRET_PASSWORD", roles: [ { role: "read", db: "my_app" } ] } ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment