add max_allowed_packet to my.cnf