mongo登陸認證失敗, 求教如何解決 5Cmongodb
登錄認證兩種方式,一種先登錄在認證:db.auth("xxx","xxx");
一種直接認證:mongo -u xxx -p xxx --authenticationDatabase xxx
第一種沒有問題,能夠認證成功,第二種報錯: AuthenticationFailed: SCRAM-SHA-1 authentication failed, storedKey mismatch
求教怎麼處理?
單機mongo,沒有開啓副本集,下邊是配置:
systemLog:
destination: file
logAppend: true
path: /data/mongodb/logs/mongodb.logit
storage:
dbPath: /data/mongodb/db
journal:
enabled: trueio
processManagement:
fork: true
pidFilePath: /data/mongodb/mongod.pid登錄
net:
port: 27017
bindIp: 0.0.0.0配置
security:
authorization: enabledfile
發佈於:2018.04.18 03:05db