Q:

mongodb readwrite to all dbs

use admin
db.createUser({
  user: '<some username>',
  pwd: passwordPrompt(),		// or '<your password>'
  roles: [ "userAdminAnyDatabase", "readWriteAnyDatabase" ]
})
0

New to Communities?

Join the community