mongo "mongodb://localhost:27017" --authenticationDatabase admin -u root
use admin
db.changeUserPassword('root', 'newpass');
db.auth('root', 'newpass');
# 1
mongo "mongodb://localhost:27017" --authenticationDatabase admin -u root
use admin
db.changeUserPassword('root', 'newpass');
db.auth('root', 'newpass');
# 1