mysqldump:错误2020:转储表时,数据包大于'max_allowed_pa​​cket'字节 [英] mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table

查看:103
本文介绍了mysqldump:错误2020:转储表时,数据包大于'max_allowed_pa​​cket'字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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_pa​​cket增加到最大值(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_pa​​cket = 512M -u根-p数据库> dumpfile.sql

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

这将解决您的问题

这篇关于mysqldump:错误2020:转储表时,数据包大于'max_allowed_pa​​cket'字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆