11 lines
172 B
JavaScript
11 lines
172 B
JavaScript
|
|
||
|
db = db.getSiblingDB('test');
|
||
|
|
||
|
db.createUser({
|
||
|
user: "rank_user",
|
||
|
pwd: "12345",
|
||
|
roles: [{ role: "readWrite", db: "test" }]
|
||
|
});
|
||
|
|
||
|
db.createCollection('rank_crawler');
|