Web_Crawler_API/init-scripts/init.js

11 lines
172 B
JavaScript
Raw Normal View History

2023-05-30 12:10:04 +00:00
db = db.getSiblingDB('test');
db.createUser({
user: "rank_user",
pwd: "12345",
roles: [{ role: "readWrite", db: "test" }]
});
db.createCollection('rank_crawler');