Error updating database.  Cause: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (211497311 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.

MySQL - Packet for query is too large (211497311 > 4194304)_mysql命令

MySQL命令

# 设置表存储的最大值
show VARIABLES like '%max_allowed_packet%';
set global max_allowed_packet = 1073741824;