mysqldump: Got packet bigger than 'max_allowed_packet' bytes

When you dump table data from MySQL, you may end up pulling a large chunk of data and it may exceed the MySQL client's max_allowed_packet variable. If that happens, you might catch an error like this:

mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table `tablename` at row: 1627

The default max_allowed_packet size is 25M, and you can adjust it for good within your my.cnf by setting the variable in a section for mysqldump:

[mysqldump]
max_allowed_packet = 500M

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2007/10/11/mysqldump-got-packet-bigger-than-max_allowed_packet-bytes/ .
© Major Hayden 2010.

3 Comments   »

RSS feed for comments on this post , TrackBack URI

Leave a Reply