解决8.0.30+使用cahcing_sha2_password时Fastauth报错问题 (#5406)

Co-authored-by: zhangkai <zhangkai02@xgd.com>
This commit is contained in:
kkz-01
2025-05-16 15:06:36 +08:00
committed by GitHub
parent e101287c25
commit 2b53164253

View File

@@ -317,6 +317,9 @@ public class MysqlConnector {
// fixed issue https://github.com/alibaba/canal/pull/4767, support mysql 8.0.30+
header = cachingSha2PasswordFullAuth(channel, header, getPassword().getBytes(), scramble);
body = PacketManager.readBytes(channel, header.getPacketBodyLength(), timeout);
} else {
header = PacketManager.readHeader(channel, 4);
body = PacketManager.readBytes(channel, header.getPacketBodyLength(), timeout);
}
}
} else {