1.sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed
这是密码中有特殊字符,未经过转义,或转义某些字符后转的不对导致的 ,挺麻烦的我建议直接去掉特殊字符
2.Failed to target upsert by query :: could not extract exact shard key\n\tat
加了分片键之后写入数据失败。临时补救方法把分片键删掉
use config
show collections
db.collections.remove({_id:"test"})
db.chunks.remove({ns:"test"})
db.locks.remove({_id:"test"})
db.adminCommand("flushRouterConfig")
用test替换分片键
1万+

被折叠的 条评论
为什么被折叠?



