manage max_allowed_packets for mysql