- Add
--max_allowed_packet=512Mto yourmysqldumpcommand. - Or add
max_allowed_packet=512Mto[mysqldump]the section of yourmy.cnf
Note: it will not work if it is not under the [mysqldump] section…
--max_allowed_packet=512M to your mysqldump command.max_allowed_packet=512M to [mysqldump] the section of your my.cnfNote: it will not work if it is not under the [mysqldump] section…