mongodump备份connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed.
MongoDB数据库备份mongodump备份有以下报错:
2025-06-07T17:11:45.536+0800 Failed: can't create session: failed to connect to mongodb://10.72.10.95:27105/: connection() error occurred during connection handshake: auth error: unable to authenticate using mechanism "SCRAM-SHA-256": (AuthenticationFailed) Authentication failed.
以为是mongodump版本不同造成的,或者mechanism问题,最后发现是给的密码不对,坑爹啊!