use admin db.createUser({user: "root", pwd: "4pTN0QzAsLpMnX7qFrBm", roles: [{role: "dbOwner", db: "photocat"}]}) db.createUser({user: "photocat", pwd: "photocat", roles: [{role: "dbOwner", db: "photocat"}]})