Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongo create user

db.createUser(
  { 
    user: "user_name", 
    pwd: "password", 
    roles: [
      "userAdminAnyDatabase", 
      "dbAdminAnyDatabase", 
      "readWriteAnyDatabase"
    ]
  }
)
 
PREVIOUS NEXT
Tagged: #mongo #create #user
ADD COMMENT
Topic
Name
4+4 =