当前位置:Gxlcms > mysql > mysql-JDBC通过SSHTunnel连接MySQL数据库

mysql-JDBC通过SSHTunnel连接MySQL数据库

时间:2021-07-01 10:21:17 帮助过:29人阅读

mysqljdbc数据库sshexception

JDBC 通过SSH Tunnel连接MySQL数据库,在获取connection 的时候总是报查询信息太多,是怎么回事?
具体信息如下:Exception in thread "main" com.mysql.jdbc.PacketTooBigException: Packet for query is too large (4739923 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.

人气教程排行