mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table

爷,独闯天下 提交于 2019-12-12 11:19:19

问题


mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table

happens, when I do a

mysqldump -u root -p database >dumpfile.sql

I increased max_allowed_packet to the max value already (1073741824) to no avail.

How come that one cannot dump a database with mysqls on board means? Cause may be a longblob in a data row/column which may be maximum size of 4 GB (4294967295 bytes).

Could it be the network transport being used? Would there be another transport?


回答1:


Use below command mysqldump --max_allowed_packet=512M -u root -p database > dumpfile.sql

This will solve your issue



来源:https://stackoverflow.com/questions/35922910/mysqldump-error-2020-got-packet-bigger-than-max-allowed-packet-bytes-when-du

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!