Take the 2-minute tour ×
Server Fault is a question and answer site for 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

closed as off-topic by HopelessN00b Feb 17 at 19:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – HopelessN00b
If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers 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.

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

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

share|improve this answer

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