[refactor] change mysql server version to avoid some cve issues (#8223)

5.1.0 -> 5.1.73
This commit is contained in:
Zhengguo Yang
2022-02-25 11:14:57 +08:00
committed by GitHub
parent f7c18d300c
commit 40c1fa2335

View File

@ -22,8 +22,8 @@ public class MysqlHandshakePacket extends MysqlPacket {
private static final int SCRAMBLE_LENGTH = 20;
// Version of handshake packet, since MySQL 3.21.0, Handshake of protocol 10 is used
private static final int PROTOCOL_VERSION = 10;
// JDBC use this version to check which protocol the server support
private static final String SERVER_VERSION = "5.1.0";
// JDBC uses this version to check which protocol the server support
private static final String SERVER_VERSION = "5.1.73";
// 33 stands for UTF-8 character set
private static final int CHARACTER_SET = 33;
// use default capability for all