db.createUser({user:"root",pwd:"root",roles:["userAdminAnyDatabase"]})
MongoDB - 运行
原文:https://www.cnblogs.com/allen2333/p/9215759.html