Hi there,
My error is as follows:
I have a page that uses the MySQL db heavily. It has a header, a sidebar, and a main content. All three components use the db, but in this particular page the main content sends about 15-20 large queries to the database.
The error is that the sidebar and header work fine and display DB information. But in the main content either of the following happens:
All the content returns an error, and none of hte queries are valid. The error returns when PHP tries to access the data in the queries, as if the queries themselves were invalid.
SOME of the content will show up, and the rest will be the same as #1. This randomly happens, and will resume #1 on and off. This happens much less. It will be sequential as well, in that the top queries work and the bottom ones don't.
These errors occur randomly, and sometimes stay for hours, and sometimes dissapear once you refresh. Usually, I have noticed, it happens when the DB is first accessed after a long period of no use. In this case, simply refreshing fixes the problem. But when it occurs when the DB is already in use, refreshing does nothing.
I have full control over everything, and have increased the max_query etc variables. I don't think it is the DB itself, and if it is it must be a very rare variable because all the ones I have read about have already been altered to ridiculously large ammounts.
Please let me know if you have encountered this problem before and/or if you have a suggestion.
When I print the MySQL error, it is "Mysql server has gone away". That's a pretty unhelpful error, and changing the DB variables (which has been the most popular proposed solution) does nothing. Maybe I am changing the wrong variables?
Thanks a lot.
Decius.