ADDED: switch max_allowed_packet to mysqldump to prevent memory error