mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
support mysql 8.4 (#5231)
This commit is contained in:
@@ -293,7 +293,7 @@ public class MysqlConnector {
|
||||
encryptedPassword = getPassword().getBytes();
|
||||
header = authSwitchAfterAuth(encryptedPassword, header);
|
||||
body = PacketManager.readBytes(channel, header.getPacketBodyLength(), timeout);
|
||||
} else if ("mysql_native_password".equals(pluginName)) {
|
||||
} else if (pluginName == null || "mysql_native_password".equals(pluginName)) {
|
||||
try {
|
||||
encryptedPassword = MySQLPasswordEncrypter.scramble411(getPassword().getBytes(), authData);
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
|
||||
Reference in New Issue
Block a user