Recently I am getting an error establishing a database connection in a clients Wordpress site. I googled for a solution and an article suggested to enable Wordpress Repairs by adding this to the wp-config.php file:

define('WP_ALLOW_REPAIR', true);

After that, visit the link:


And allowing repair as follow:

WordPress Database Repair Tool UI

So my question is. What does optimization mean? What are those scenarios or situations that Wordpress fix? Can I do this procedure in existing and non problematic Wordpress websites to enhance performance?

  • 1
    As far as I know it does not do anything more than running mysql command for optimizing and repairing damaged mysql tables. Sometimes tables corrupt and mysql has inbuilt option mysqlcheck -r to repair and mysqlcheck -o to optimize a mysql database. WordPress just run those commands. For more details on these two you can search on mysql docs. – Robert hue Oct 6 '15 at 6:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.