问题描述
mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table
碰巧,当我做一个
mysqldump -u根-p数据库> dumpfile.sql
mysqldump -u root -p database >dumpfile.sql
我已经将max_allowed_packet增加到最大值(1073741824),但无济于事.
I increased max_allowed_packet to the max value already (1073741824) to no avail.
为什么不能在板上装满mysqls的情况下转储数据库?原因可能是数据行/列中的长号,最大大小为4 GB(4294967295字节).
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?
推荐答案
使用以下命令mysqldump --max_allowed_packet = 512M -u根-p数据库> dumpfile.sql
Use below commandmysqldump --max_allowed_packet=512M -u root -p database > dumpfile.sql
这将解决您的问题
这篇关于mysqldump:错误2020:转储表时,数据包大于'max_allowed_packet'字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!