This commit is contained in:
RainSun 2020-12-02 22:43:00 +08:00
parent 749ad08c64
commit 8724ccdfad

View File

@ -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
```