• I have searched on the site and not found anything. There was an old post for version 2.7 and below using wp-db.php but its does not work for 3.1.3.

    The problem is that every few minutes nearly i keep getting this error and i cant find a fix i even install a DB Manager and Optimized mysql and still didnt work.

    My website url is https://achievementgamers.co.cc just start going through pages and it will come up in less than a minute normaly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • At this point I would contact my webhosting company and ask them for help.

    Thread Starter bballuk

    (@bballuk)

    I Contacted my hosting company and they replyed with.

    Hello,

    If you see error message ‘MySQL server has gone away’, it might be that your script is not optimized and makes too many connections to the database (or your website is very active, has many users online at the same time).
    You may also get his error if your script executes heavy/slow MySQL queries.

    First of whole you should check if your database is well optimized and has indexes where needed. You should contact the script developers and ask assistance.

    You can also query Google for this error message:
    https://www.google.com/search?q=MySQL+server+has+gone+away

    Its possible its something on your site, sure. But I have also seen this happen on overloaded shared hosting servers. The load on the server being such it takes the SQL queries too long to complete, timing the process out. Especially if you see it in 5 seconds after clicking to another page. Is it like that all the time or more at certain times of the day, especially evening? If its time-dependent that points to the server.

    This is not just “some script” that is not well optimized. There are literally millions of sites running WordPress and not many of them experience on an ongoing basis the issue you are experiencing.

    You might try installing a caching plugin, such as WP Super Cache. They stores static copies of your pages on disk so its not necessary for WP to run SQL queries on every page load. This can make a significant difference on a crowded server.

    Thread Starter bballuk

    (@bballuk)

    I will have to try the Cache Plugin and see how it works thanks for the quick reply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘MySQL server has gone away’ is closed to new replies.