Theme Dojo

Free and premium WordPress themes

Tips on How to Clean Up Your WordPress Database

Slow page load speeds can be very damaging, especially for a business website. Studies have determined that the delay of even a single second can end up frustrating your target audience and bring about a significant decrease in your earnings.

WordPress might be the most customizable content management system out there but it is not the most efficient. However, you can improve the performance of your website with a few simple changes. In this article we have discussed some database optimization strategies that might help you decrease page load times.

1. Cleaning up in PHPMyAdmin

PhpMyAdmin is a web based database management system that you can use to build tables, run queries, carry out cleanup activities, add new databases and back up existing ones. Additionally there are numerous simple optimizations which can be performed in phpMyAdmin.

To get started, go to the cPanel dashboard and click the phpMyAdmin icon. On many servers users are logged in automatically but on others they need to log in manually. In case your server belongs to the second category and you do not remember your credentials then go to the root directory and open the wp-config.php file. After that you can use these credentials to gain access to phpMyAdmin and select your DB. The database’s title can also be found in the wp-config.php file.

You’ll then be presented with a list of database tables. To to clean them quickly, simply select everything by clicking on “Check All” and hit “Repair Selected”. PhpMyAdmin will conduct essential maintenance operations and provide you a summary of modifications made to each affected table. After that, you can select the tables again but now click on “Optimize All” instead.

2. Using the command line

You can easily complete the necessary operations using the command line if you have SSH access to the web server on which your WordPress blog is located. Simply open command line and type in the following words:

mysqlcheck -u [username] -p [password] -o [database name]

3. Using plug-ins

The WordPress archive has a plugin for everything and DB optimization is no exception. With a quick online search you can find dozens of extensions that automatically take care of all of the tasks stated previously. Here are some plugins that we have found really useful:

Database Browser: This plugin hasn’t been designed for optimization purposes but if you know SQL syntax you will find it very useful. It allows you to run queries from your WordPress admin panel so you can delete revisions, spam comments and so on.

WP Optimize:
While Database Browser is a plugin ideal for people with development experience, WP Optimize has been designed for beginners who know little to nothing about database queries. It performs a whole range of optimizations on your database, making it lighter and faster.

Database optimization is a technique that is often ignored by website owners but it is very effective specifically on large websites.