MySQL Forums
Forum List  »  PHP

Re: Changing max_allowed_packet on a shared server
Posted by: Bill Karwin
Date: May 01, 2006 12:54PM

Either of these should do it:

SET GLOBAL max_allowed_packet=1234567

But you'll have to do this every time the MySQL server restarts.

SET SESSION max_allowed_packet=1234567

But this'll be only for the current application's connection, and you'll have to do it every time you connect.

Also, if this is a shared server, you might want to check with the other users first. ;-)

Here's a couple of doc pages that you can read for more info:
http://dev.mysql.com/doc/refman/5.0/en/using-system-variables.html
http://dev.mysql.com/doc/refman/5.0/en/dynamic-system-variables.html

Regards,
Bill K.

Options: ReplyQuote


Subject
Written By
Posted
Re: Changing max_allowed_packet on a shared server
May 01, 2006 12:54PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.