1. It will be more convenient to use visualization tools, with hints
enter shell command mode
2. Switch to the database cxz that needs to be set
use cxz
3. Add users
db.createUser(
{
user: "cxz",
pwd: "abc123",
roles: [ { role: "dbOwner", db: "cxz" } ]
}
)
----
4. Delete user
db.dropUser("cxz")