• Skip to main content
  • Skip to primary sidebar

Digital Maestro

Harmonizing Your Online Strategy

  • Home
  • About
  • Work With Us
    • Coaching
      • One-on-One Coaching
    • Services
      • Set Up Services
      • Website Maintenance
  • Products
    • WPICA
    • WP Security Help
  • Blog
    • Affiliate Marketing
    • Plugins
    • Business
  • Resources
    • Registrar
    • Hosting
  • Contact

Feb 06 2012

Optimize Your WordPress Database

Just about everything that is related to the content on your WordPress website is stored in a database. For now, I will refer to this as your WordPress database. All your Posts, your Reader comments, your pages, etc. are saved in a database. Every once in a while, the database may run slower than you want it to. When that happens, it is time for a basic tune-up on your website.

To perform this tune-up, you will have to use a program called phpMyAdmin. This is available to you from within your cPanel on your hosting account. In case you are wondering, PHP is the language that is used to create WordPress.

Note: Of course, always back up your database BEFORE you make any sort of changes to it. Also, make sure you can RESTORE your database if you have to revert back to a previous version. A back up is NO good if you cannot get the data back!

Let’s get started, shall we?

  1. Log into your cPanel and look for the section titled, Databases.
  2. Click on phpMyAdmin.
  3. On the left will be a list of databases. Select the one to repair/optimize (if you only have one website with WordPress installed, it will be the only entry). To select it, click on the name.
  4. This will load all of the tables in your database into the right side. At the bottom of this list, check the “Check All” checkbox/link at the bottom of the list.Optimize_WordPress_Tables
  5. Just to the right of the Check All link, select the “Repair” option in the drop-down list.
  6. This will list all the tables, with “OK” listed next to them. When this is done, look up to the top of the page and click on the “Structure” tab.
  7. Once the process has finished the page will revert back to step 4.
  8. Click “Check All” again, and then choose “Optimize” in the drop-down menu.

That is all you have to do – the process is done! Many MySQL errors can be fixed by this process. It is recommended to perform these steps frequently to keep any database in good condition.

If you are more technical (and want to know what just happened), read on. If not, just rest assured that your work here is done!

So, what just happened? Well, the Optimize Table command was run on all the tables. According to the official mySQL manual,

OPTIMIZE TABLE should be used if you have deleted a large part of a table or if you have made many changes to a table with variable-length rows (tables that have VARCHAR, VARBINARY, BLOB, or TEXT columns). Deleted rows are maintained in a linked list and subsequent INSERT operations reuse old row positions. You can use OPTIMIZE TABLE to reclaim the unused space and to defragment the data file. After extensive changes to a table, this statement may also improve the performance of statements that use the table, sometimes significantly.

Are you glad you asked?

Written by Paul · Categorized: General

Reader Interactions

Comments

  1. denny hagel says

    February 7, 2012 at 7:00 pm

    Valuable info! Thanks for sharing!

    Reply
  2. Hughie Bagnell says

    February 7, 2012 at 8:00 pm

    Great technical information Paul! Thank you for sharing…Hughie

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

UpCity: Best of New Jersey

UpCity Best of New Jersey

Proud Member

Recent Posts

  • Voice Search and Local SEO: The Shift You Can’t Afford to Ignore
  • The Local Business Owner’s Guide to Holiday Promotions That Work
  • 7 Holiday Marketing Mistakes That Can Cost Your Local Business (and How to Avoid Them)
  • How Small Businesses Can Compete With Big Brands in the New Year
  • Holiday Marketing on a Budget: Creative Ideas That Don’t Break the Bank

WordPress Topics

  • Affiliate Marketing
  • Blogging Category
  • Business Building
  • Coaching Category
  • General
  • List Building
  • Marketing
  • Plugins
  • Resources
  • SEO
  • Services
  • Social Media
  • Themes
  • Traffic
  • Uncategorized
  • Video Subscription
  • Webinar
  • WordPress Online Strategy

Missinglettr

Copyright © 2025 · Digital Maestro · Disclaimer · Privacy Policy · Terms of Service · Accessibility · Stay Awesome!