Feb 122011
Solving the error "Packet too large" in MySQL
Answer:
When you try to insert a very large row of data (e.g. BLOB) into MySQL using a single insert statement, MySQL might give you the error "Packet too large". You might need to adjust the value of max_allowed_packet as needed.
1. Edit the MySQL configurations, e.g. /etc/my.cnf
..
max_allowed_packet=32M
..
Don't forget to restart MySQL to take effect.
# /sbin/service mysqld restart
Reference: http://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html