Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers

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.

share|improve this answer
    
Thanks, I hit this issue adding a large plugin to Atlassian Confluence. The docs you linked to fixed it :-) –  tovare Aug 6 '10 at 21:22
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.