Home > Database > Mysql Tutorial > mysql- Packet for query is too large (60 > -1).

mysql- Packet for query is too large (60 > -1).

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:34:44
Original
1545 people have browsed it

mysqlamoebatomcat

连接池用tomcat jdbc ,数据库为mariadb10

中间经过amoeba代理读写分离

偶尔会报这个错

Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (60 > -1). You can change this value on the server by setting the max_allowed_packet' variable.

mariadb SHOW VARIABLES LIKE 'max_allowed_packet';返回结果为
max_allowed_packet 67108864

不知道什么情况下会引起负值,请高手帮忙排查

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template