Wednesday, January 19, 2011

MySQL - maximum packets not allowed

Hi, 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

  • 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.

    tovare : Thanks, I hit this issue adding a large plugin to Atlassian Confluence. The docs you linked to fixed it :-)
    From Phil
  • You need to raise max_allowed_packet under [mysqld] section in the configuration file (my.cnf).

  • 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.

    From Tim Meers

0 comments:

Post a Comment