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