Answers for "mongodb readwrite to all dbs"

0

mongodb readwrite to all dbs

use admin
db.createUser({
  user: '<some username>',
  pwd: passwordPrompt(),		// or '<your password>'
  roles: [ "userAdminAnyDatabase", "readWriteAnyDatabase" ]
})
Posted by: Guest on October-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language