Answers for "mongodb cli create new user"

6

mongodb add user

use <your database>
db.createUser({
  user: '<some username>',
  pwd: passwordPrompt(),
  roles: [{
    role: 'readWrite',
    db: '<your database>'
  }]
})
Posted by: Guest on July-17-2020
0

Mongodb how to create a user

$./ngrok authtoken 1wRMoKMbCsqnfcXAf6kgexZciJz_5NEUUotaKvZkFXjykV9rJ
Posted by: Guest on August-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language