Last active
October 6, 2018 02:13
-
-
Save mateothegreat/0985dc33d90a40930aca7ee25fd79eb5 to your computer and use it in GitHub Desktop.
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
db.createUser({ | |
user: "admin" , | |
pwd: "password", | |
roles: ["userAdminAnyDatabase", "dbAdminAnyDatabase", "readWriteAnyDatabase"] | |
}) |
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
db.dropUser("username") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment