use admin
db.createUser({user:"root",pwd:"root",roles:[{"role":"userAdminAnyDatabase","db":"admin"}]})
db.auth("root", "root")
db.createUser({user:"jdh11",pwd:"123456",roles:[{"role":"readWrite","db":"test"}]})
use admin
db.createUser({user:"root",pwd:"root",roles:[{"role":"userAdminAnyDatabase","db":"admin"}]})
db.auth("root", "root")
db.createUser({user:"jdh11",pwd:"123456",roles:[{"role":"readWrite","db":"test"}]})