db = db.getSiblingDB('icarus') //create and set db db.createUser( { user: "icarus", pwd: "icarus", roles: [ { role: "dbAdmin", db: "icarus" } ] } )