soundzgood2 wrote:
You can get this error if the query you're trying to run is too large or takes too long to execute.
Mysql just disconnects cos it's given up (or thinks you have.)
Ask your host to:
1. check the max_allowed_packet value in the configuration file (16M +)
2. check the wait_timeout (600 seconds+)
3. restart the mysql server for you
Probably the only other move after that is to shorten the query (employ a coder.)
Simon
For the 1st item, I added the line: max_allowed_packet=16M in my php5.ini file (previously there was no such line addressing maximum packet allowed). For the 2nd item, I do see a line that says: max_input_time = 60 Is that the line we should edit? Or did you mean to add a line called wait_time=600 (I don't see an existing line with a wait_time variable).
Either way, isn't 600 seconds (10 minutes) a long time to be waiting for a web page to load? Is it even worth the bother to change this, hoping there is someone who would actually wait that long?