Saturday, 3 October 2009

Got a packet bigger than max_allowed_packet' bytes

Getting the below error executing a sql query:

Got a packet bigger than 'max_allowed_packet' bytes

You can increase the max_allowed_packet by editing my.cnf (generally found at /etc/my.cnf); add the below

line to my.cnf and restart Mysql service.


set-variable=max_allowed_packet=xM

No comments:

Post a Comment