set max_allowed_packet mysql in server code example Example: show max_allowed_packet mysql SHOW VARIABLES LIKE 'max_allowed_packet';