创建用户
use admin;
db.createUser({user:"root",pwd:"123qwe",roles:[{role:"root",db:"admin"}]})
db.createUser({user:"bwgame",pwd:"Qaz123",roles:[{role:"readWrite",db:"integrated_platform"}]})
db.createUser({user:"bwgame",pwd:"Qaz123",roles:[{role:"readWrite",db:"integrated_platform_admin"}]})
db.createUser({user:"artipub",pwd:"123qwe",roles:[{role:"readWrite",db:"artipub"}]})
db.createUser({user:"user1",pwd:"123qwe",roles:[{role:"readWrite",db:"game_test"}]})
db.createUser({user:"root",pwd:"123qwe",roles:[{role:"dbAdmin",db:"game_test"}]})
export PATH=/Users/apple/soft/mongodb/bin:$PATH
db.createUser({user:"root",pwd:"123qwe",roles:[{role:"dbAdmin",db:"admin"}]})