Answers for "mongodb auth admin"

-1

mongodb add admin user

use admin
db.createUser({
  user: "username",
  pwd: "password",
  roles: [ "root" ]
})
Posted by: Guest on July-17-2020
0

Mongodb admin login

mongo -u johndoe -p --authenticationDatabase admin
Posted by: Guest on August-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language