Mongodb创建用户Error: couldn’t add user: Use of SCRAM-SHA-256 requires undigested passwords
解决方案:修改mechanisms加密方式为SCRAM-SHA-1
db.createUser({ user: "admin", pwd: "xxx", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ], mechanisms : ["SCRAM-SHA-1"] })