The error mostly caused by BLOB values that are larger than max_allowed_packet. Sometimes you may see "packet too large" as part of the error message, and that confirms that you need to increase max_allowed_packet value. You can increase MySQL max allowed packet size with one of the following options:
mysqld --max_allowed_packet=16M
SET GLOBAL max_allowed_packet=16M
[mysqld] max_allowed_packet=16M
Have more questions? Contact us