天天看点

MySQL报错:【Packet for query is too】【large max_allowed_packet】

查询或插入的数据包大于MySQL默认设置

com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (12,131,066 > 4,194,304).  You can change this value on the server by setting the 'max_allowed_packet' variable. ERROR 2020 (HY000): Got packet bigger than 'max_allowed_packet' bytes