Take the following steps to repair and resolve database issues in your WordPress installation:
- Back up the existing database using phpMyAdmin or the database backup plugin.
- Open the wp-config.php file on the main WordPress installation folder, using the code editor.
- Add the following line of code after the comment /* That's all, stop editing! Happy publishing. */:
define('WP_ALLOW_REPAIR', true);
-
Save the changes to the file.
- Visit www.yoursite.com/wp-admin/maint/repair.php using the web browser to get a screen similar to the following. You should replace www.yoursite.com with the URL of your site:
- Click the Repair ...