Answers for "user not added to users database mongodb"

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

Code answers related to "user not added to users database mongodb"

Code answers related to "Javascript"

Browse Popular Code Answers by Language