Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create admin user in mongodb

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