7 lines
133 B
Text
7 lines
133 B
Text
|
db = db.getSiblingDB('user_db');
|
||
|
|
||
|
db.createUser({
|
||
|
user: "user",
|
||
|
pwd: "12345",
|
||
|
roles: [{ role: "readWrite", db: "user_db" }]
|
||
|
});
|