How to repair MySQL Tables



Sometimes it is possible that your WordPress database can become overburdened in the process of fetching so much requests and because of it, it will create overhead. As time progresses, overhead values of some tables can become very high and it might cause the database to crash, like what happened to me recently. It is similar to the concept of defragmentation in windows. To keep your database healthy and free of any overheads, just follow the steps shown below

1) Open phpMyAdmin client and select your wordpress database and click on its name

2) You will now see all the tables of the database as shown below.

1

3) Select the checkbox of each table which have an overhead value

4) Go to the drop down menu “with selected” and select repair table

2

 5) An sql query will now be executed and if everything works fine, you will see a screen similar to the one shown below.

repaired   

This way all the overhead value will be cleared. If the overhead values is under a kilobyte, it isn’t much of a problem but sometimes the overhead value can become very large. So it is better to perform these steps once every few days so as to keep your database healthy.

21 Comments

  1. Feb 08 stats says:

    […] How to Repair MYSQL Tables […]

  2. […] How to repair MySQL Tables: Also from Madhur. I found this gem looking through his archives. A solid, step by step guide for repairing your wordpress MySQL tables. […]

  3. Bobby Revell says:

    I have a question, are you good at debugging mysql tables? Can you repair a corrupted wordpress database backup? Or do you know someone who can?

  4. @Bobby
    No Bobby, i have no expertise there. Maybe you can try visiting the some forums like digital point, you might find someone there.

  5. Abhishek says:

    I never headed such Problem. any reason why such had happened ?

  6. @Abhishek
    This can happen in due course of time as more queries are fetched from Database so it is better to check it regularly.

  7. How to repair MySQL Tables…

    Sometimes it is possible that your WordPress database can become overburdened in the process of fetching so much requests and because of it, it will create overhead. As time progresses, overhead values of some tables can become very high and it might c…

  8. How to repair MySQL Tables…

    Sometimes it is possible that your WordPress database can become overburdened in the process of fetching so much requests and because of it, it will create overhead. As time progresses, overhead values of some tables can become very high and it might c…

  9. […] for help” post. Last week as I spent some time googling for answers, I came across a post (similar to this one) which explained how WordPress mySQL databases over time can develop “overhead” and […]