Created
August 15, 2015 01:40
-
-
Save shamalroy/0c1977acfcdbc0ee6c61 to your computer and use it in GitHub Desktop.
MongoDB create user
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
use myDB | |
db.createUser( | |
{ | |
user: "userName", | |
pwd: "abc123", | |
roles: ["readWrite"] | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment