use admin; db.grantRolesToUser('admin', [{ role: 'root', db: 'admin' }])
use admin db.createUser( { user: 'admin', pwd: 'password', roles: [ { role: 'root', db: 'admin' } ] } ); exit;