I am having a problem with BLOB fields in my MySQL database - when uploading files larger than approx 1MB I get an error Packets larger than max_allowed_packet are not
Packets larger than max_allowed_packet are not
Change in the my.ini or ~/.my.cnf file by including the single line under [mysqld] or [client] section in your file:
my.ini
~/.my.cnf
[mysqld]
[client]
max_allowed_packet=500M
then restart the MySQL service and you are done.
See the documentation for further information.