If you look at your error log file for MySQL you’ll inevitably see the warning: “got an error reading communication packets”. The common solution is to increase the max_allowed_packet size.
I’ve seen this set as high as 1GB but typically the problem is alleviated by running it as max_allowed_packet=64M. If you set this higher – either by issuing a `set global max_allowed_packet=64M;` or by editing the cnf and restarting the mysqld process – and the error persists, I’d recommend reading the following links. Very informative.
http://dev.mysql.com/doc/refman/5.0/en/communication-errors.html
http://dev.mysql.com/doc/refman/5.0/en/making-trace-files.html



