I found out how to change the default value of max_allowed_packet in MySQL using SET GLOBAL. However, each time I used this command, the default va
max_allowed_packet
SET GLOBAL
Just a quick way to see the variable for anybody who comes across this. To get the value back you need to run
SHOW VARIABLES LIKE 'max_allowed_packet'