dmitry3
12/16/2019 - 7:43 AM

mongodb create user root

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