Get In Touch
606 Tower A Plot, I-Thum Tower, Sector 62, Noida, Uttar Pradesh, IN
Ph: +91 8383.033.985
Work Inquiries
Ph: +91 8383.033.985

Repair a Corrupted WordPress Database


WordPress is managed by its database. You can’t show a put up correctly in case your database is corrupt, as typically the classes and tags are all fallacious, or typically you can not even log in.

Nonetheless, corrupted databases for WordPress occurs greater than you’d have preferred. And it might be due to quite a lot of causes, corresponding to putting in a defective plug-in, your WordPress being hacked, a server crash, {hardware} failure in your server, or a bug in MySQL, or for no explicit purpose it appears.

Earlier than you panic, although, take a deep breath and know that there are easy methods to repair a corrupted database.

So what do you do when the dreaded error message, “… is marked as crashed and must be repaired” crops up?

Repair corrupted WordPress databases by way of SSH or PhpMyAdmin, or cPanel

a. PhpMyAdmin – discover the suspected WP database and verify the desk that has been corrupted.

Then search for the drop-down field and choose “Restore desk” from the choices.

b. Safe Shell

• Log into your shell, then entry the databases by keying this in mysql -u username -p database_name.

• View all of the databases by typing in present databases.

• Then kind in use database_name; to entry the database.

• Kind in present tables to view all of the tables. Search for the corrupted desk from the checklist.

• Kind in verify desk wordpress_table_name to make sure that that is the desk that’s supplying you with the error.

• Now it is time to restore the corrupted desk. You are able to do this by keying in restore desk wordpress_table_name.

c. In cPanel:

• Log into cPanel and discover your MySQL Databases.

• Choose the database from the dropdown checklist underneath MySQL Databases.

• Click on the Restore DB button.

If the SSH possibility appeared relatively lengthy for you, do this shortcut:

• kind in mysqlcheck database_name to see which tables has crashed.

• then kind in mysqlcheck database_name –auto-repair to restore the corrupted information.

You may additionally arrange WordPress to mechanically restore corrupted databases by including this line:


into your wp-config.php. This works just for WordPress model 2.9 or later.

Two issues that you need to at all times do as regards to WordPress databases: Backup and Optimize.

Optimizing your database may be very very like defragging your arduous drive. It’s a option to clear up your database in order that it runs easily. Optimizing helps clear up your database and frees up server disk area.

Take a look at the next plug-ins that will help you optimize your database:

• WP-Optimize: This plug-in lets you optimize and clear up your database and carry out different duties simply and with just some clicks.

• Clear Choices: When you’ve got orphaned choices in your database, this plug-in might enable you to simply clear them up.

• WP Database Optimize: This lets you arrange a schedule in your optimization.

Backing up your database ought to enable you to get again in your toes if extra database issues come up and these ideas don’t work. As a substitute of dropping your blogs, articles and readers, you may simply restore a earlier backup of your WP set up.

And that is the way you repair a corrupted WordPress database.

Supply by Sherly A. Mendoza

Post a comment

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