Skip to content

Instantly share code, notes, and snippets.

@pi0
Last active September 19, 2018 09:29
Show Gist options
  • Save pi0/886304da89d183ab66167215ba2f7cb4 to your computer and use it in GitHub Desktop.
Save pi0/886304da89d183ab66167215ba2f7cb4 to your computer and use it in GitHub Desktop.
Mongo Shell Commands
use admin
db.createUser({ user: "root", pwd: "root", roles: [ "root" ] })
use admin
db.changeUserPassword('root', 'root')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment