I had read the content on the link you sent before I asked this question. Especially for "db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}]});
db.getSiblingDB("MONGO_DBNAME_stat").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME_stat"}]});" I still feel at a loss. I don't know how to replace it. Can you pick a random name and help me replace what needs to be replaced? Give me an example.
Is this a new feature request?
Wanted change
I had read the content on the link you sent before I asked this question. Especially for "db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}]}); db.getSiblingDB("MONGO_DBNAME_stat").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME_stat"}]});" I still feel at a loss. I don't know how to replace it. Can you pick a random name and help me replace what needs to be replaced? Give me an example.
Reason for change
help me
Proposed code change
No response