WordPress and my slow MySQL database issue is solved!

Posted By on November 20, 2011

Finally, after about a month of trial and error fiddling with WordPress and MySQL since moving to a new server, redirectionlogsforwpI’ve figured out why MyDesultoryBlog has been so slow. Initially I blamed the new server since everything was fine at the old host, and even started to wonder if 6 years or so of daily blogging had finally hit a limit for “my” particular install or memory allocation. The experts that I talked with were all over the board and really not of much help – the same for searching, reading and posting on the WordPress  support forums.

redirectionpluginFinally after clearing out a few log files I looked at the plugin for handling 301 redirection and keeping track of 404 errors … “hmm, I was building up a pretty good sized log record.” The plug-in responsible for managing this is called  Redirection and has a manual log deletion button. After who knows how many months … years probably … of building a substantial sized log, I finally deleted it (I could have emptied directly from MySQL, but the plug in button make it easy).

So my advice, if you are noticing database query slowness, and have already “repaired” and “optimized” your database, is to clear out any unneeded log files … especially the one being created by the Redirection plug-in … if you have it installed. Also under the “Options” link be sure to set the “Expire Logs” for something other than zero.

setexpiredfor7days

Comments

Desultory - des-uhl-tawr-ee, -tohr-ee

  1. lacking in consistency, constancy, or visible order, disconnected; fitful: desultory conversation.
  2. digressing from or unconnected with the main subject; random: a desultory remark.
My Desultory Blog