Create Admin

mail@pastecode.io avatar
unknown
plain_text
2 years ago
193 B
2
Indexable
use admin;
db.createUser (
{
user: "UserAdminSoftline",
pwd: passwordPrompt(),
roles: [ { role: "userAdminAnyDatabase", db: "admin" },{ role: 'readWriteAnyDatabase', db: 'admin' } ]
}
);