WP-CLI

A command line interface for WordPress

wp db repair - Repair the database in MySQL.

Quick links: Github issues


Runs mysqlcheck utility with --repair=true using DB_HOST, DB_NAME, DB_USER and DB_PASSWORD database credentials specified in wp-config.php.

See docs for more details on the REPAIR_TABLE statement.