max_allowed_packet allowed for dynamic values, this means you just need to login to mysql console
show variables like 'max_allowed_packet';
set global max_allowed_packet=33554432;
log out and log back in
show variables like 'max_allowed_packet';
If you don’t have a console login, try PHP to work the same way.
source
share