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