db.createUser({user: "admin",pwd: "xxx",roles: ["root"]});
mongodb创建管理员用户
原文:https://www.cnblogs.com/gaobing/p/12056312.html