Optimize and Repair your WordPress database

Once you have wp-config open, add this line of code to the bottom:

define( ‘WP_ALLOW_REPAIR’, true );

This line will enable you to optimize and repair your database by navigating to www.yourwebsite.com/wp-admin/maint/repair.php (just replace “yourwebsite.com” with your actual URL).