Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb add admin user

use admin
db.createUser({
  user: "username",
  pwd: "password",
  roles: [ "root" ]
})
Source by devops.ionos.com #
 
PREVIOUS NEXT
Tagged: #mongodb #add #admin #user
ADD COMMENT
Topic
Name
5+2 =