Last active
May 9, 2018 23:19
-
-
Save oliveiracdz/a425ec1b79ed3519729d38c6eac3d8b3 to your computer and use it in GitHub Desktop.
MongoDB admin
This file contains 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
// 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