天天看點

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