diff --git a/Miscellaneous/mongoDB.md b/Miscellaneous/mongoDB.md index 9f15d09..b8aa360 100644 --- a/Miscellaneous/mongoDB.md +++ b/Miscellaneous/mongoDB.md @@ -135,6 +135,16 @@ db.auth("curl", "jV9cL0eW6mX4") db.auth("web", "xA5uU1eZ6fV1") db.auth("neko", "lO1wV2gT0eJ0") +// pve +db.createUser( + { + user: "teaweb", + pwd: "uJ5hB9mJ0gR2", + roles: [ { role: "dbOwner", db: "teaweb" }] + } +) +db.auth("admin", "dY1oU0wM6yW9") +db.auth("teaweb", "uJ5hB9mJ0gR2") docker exec -it 8b4f1cbbf048 mongo admin ```