Fixing MySQL indexes
Posted by: waltisfrozen
Posted on: 2007-04-25 15:12:00
A little background. I've been noticing that posting to my Wordpress site is incredibly slow, so I logged into phpMySQL to poke around and noticed some unusual looking info on the "Runtime Information" page for my db. Among the findings is thie :
In reply to:
Select_full_join 19 k
Handler_read_rnd 54 M
Handler_read_rnd_next 666 M
From the Googling I've done it seems that one or more of my indexes has become corrupted. I've run some queries like this :
In reply to:REPAIR TABLE wp_widgets USE_FRM
...but the slowness continues. Does anyone know a good,safe way to recreate the indexes for my tables? I saw some mentions of a utility called "myisamchk", but that doesn't seem to work from me from the command line.