mysqldum导出大数据表错误
[[email protected] itop]# mysqldump -u root -p --opt itop >/home/itop/itop-backup.sql
Enter password:
mysqldump: Error 2020: Got packet bigger than ‘max_allowed_packet‘ bytes when dumping table attachment
at row: 1
解决办法:增加mysqldump的 max_allowed_packet
[[email protected] itop]# mysqldump -u root -p --max-allowed-packet=64943040 --opt itop >/home/itop/itop-backup.sql
Enter password:
[[email protected] itop]# ls
databases.sql itop-backup.sql
原文地址:http://blog.51cto.com/coolner/2161381
时间: 2024-10-29 00:40:39