use <your database> db.createUser({ user: '<some username>', pwd: passwordPrompt(), roles: [{ role: 'readWrite', db: '<your database>' }] })