Web_Crawler_API/init-scripts/init.js
2023-05-30 15:10:04 +03:00

10 lines
172 B
JavaScript
Executable file

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