From 40c1fa2335f4ecedfa4865dca66d5ffbc4dedda7 Mon Sep 17 00:00:00 2001 From: Zhengguo Yang Date: Fri, 25 Feb 2022 11:14:57 +0800 Subject: [PATCH] [refactor] change mysql server version to avoid some cve issues (#8223) 5.1.0 -> 5.1.73 --- .../java/org/apache/doris/mysql/MysqlHandshakePacket.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlHandshakePacket.java b/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlHandshakePacket.java index 347ee0b65a..ed7aec9337 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlHandshakePacket.java +++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlHandshakePacket.java @@ -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