Optimize That Database

Photo credit: Sachin Ghodke

If you’re using WordPress, I bet this is one thing you have never done or even thought you need to do. Most of us are familiar with the term defragging our hard drive. Over time, when we regularly retrieve and save files, the operating system doesn’t always put things back where they belong. So you end up with some fragments of data in one place and another somewhere else.

Kinda like a messy kid who leaves his shoes at the door, socks in the kitchen and back pack on the kitchen table.

Well it happens with databases too. The more you use it and the system checks information in and out, data is added and deleted, overhead builds. This makes the database run slowly and possibly corrupt the data.

Good news is, it is super simple to optimize a MySQL database. Here’s how you do it using phpMyAdmin. Log in to your web host control panel and open up phpMyAdmin. Select the database you want to work with on the left side of your screen.

On the right side of the screen, you’ll see a list of all the ‘tables’ in your database. Scroll to the bottom.

1. Click on “Check tables having overhead”

2. Then click the drop down select “Optimize database”


Click picture to enlarge

You’ll get a message like this. OK means it’s successful.


Click picture to enlarge

There are ways to automate this task. Ask your tech assistant.

Do You Want A Hands-Free Business?

Then get this guide to help you systemize your business so you'll have more time working on your business.

!
!

Hey! I want to make sure you know what you're getting here. In addition to the guide, you will also receive our memo that includes special offers, announcements and of course actionable information.

Terms and Conditions checkbox is required.
Something went wrong. Please check your entries and try again.
Facebook Comments

8 Comments

  1. Santa on October 23, 2008 at 9:47 am

    You are right, the DB is something we always neglect. I do some cleanup with spammy comments but never thought about defragging the DB. Thanks for the tip.



  2. Santa on October 23, 2008 at 5:47 am

    You are right, the DB is something we always neglect. I do some cleanup with spammy comments but never thought about defragging the DB. Thanks for the tip.



  3. Lynette on October 27, 2008 at 4:21 pm

    Hey again Santa. It is easy to neglect since it’s not something you see or need to visit everyday. Whenever I do log in to my cPanel I will take a peek in the databases and optimize it.



  4. Lynette on October 27, 2008 at 12:21 pm

    Hey again Santa. It is easy to neglect since it’s not something you see or need to visit everyday. Whenever I do log in to my cPanel I will take a peek in the databases and optimize it.



  5. Thomas Mullooly on October 28, 2008 at 11:34 pm

    Optimizing the database: so…how frequently should this be done? Good tip, thanks LC.

    Tom



  6. Thomas Mullooly on October 28, 2008 at 7:34 pm

    Optimizing the database: so…how frequently should this be done? Good tip, thanks LC.

    Tom



  7. Lynette on October 29, 2008 at 9:49 pm

    Hey Thomas, depends how busy your blog/site is. If there is a ton of activity, chances are regularly maybe every day. But if you have a medium to low level blog I wouldn’t worry too much about it maybe check in about once a month.



  8. Lynette on October 29, 2008 at 5:49 pm

    Hey Thomas, depends how busy your blog/site is. If there is a ton of activity, chances are regularly maybe every day. But if you have a medium to low level blog I wouldn’t worry too much about it maybe check in about once a month.