Skip to content

Instantly share code, notes, and snippets.

@oliveiracdz
Last active May 9, 2018 23:19
Show Gist options
  • Save oliveiracdz/a425ec1b79ed3519729d38c6eac3d8b3 to your computer and use it in GitHub Desktop.
Save oliveiracdz/a425ec1b79ed3519729d38c6eac3d8b3 to your computer and use it in GitHub Desktop.
MongoDB admin
// https://stackoverflow.com/a/34634554/1440095
use admin
db.createUser(
{
user: "tom",
pwd: "jerry",
roles:["root"]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment