1

My client application will throw an exception with the description above when I am sending a file around 2 megs- I have only little knowledge about mysql back end. Does it mean that I need to set something like "maximum packets" on the mysql server? Thanks

3 Answers 3

3

Set max_allowed_packet in your my.cnf MySQL configuration file

See http://dev.mysql.com/doc/refman/5.1/en/packet-too-large.html for more information.

1
  • Thanks, I hit this issue adding a large plugin to Atlassian Confluence. The docs you linked to fixed it :-)
    – tovare
    Aug 6, 2010 at 21:22
0

You need to raise max_allowed_packet under [mysqld] section in the configuration file (my.cnf).

0

If your under windows you will need to edit the max_allowed_packet in your my.ini file. You can see the MySQL Ref Manual for help on this as well.