Skip to content

Instantly share code, notes, and snippets.

@parvez
Created January 6, 2017 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parvez/9ec75a829abf81b1ca8997ea09711bc2 to your computer and use it in GitHub Desktop.
Save parvez/9ec75a829abf81b1ca8997ea09711bc2 to your computer and use it in GitHub Desktop.
db.dropAllUsers()
db.createUser( { user: "root", pwd: "SECRET_PASSWORD", roles: [ "root", "userAdminAnyDatabase", "dbOwner" ] } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment