From 8724ccdfad4b19f2698581463b8e40e7accfe960 Mon Sep 17 00:00:00 2001 From: RainSun Date: Wed, 2 Dec 2020 22:43:00 +0800 Subject: [PATCH] update --- Miscellaneous/mongoDB.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ```