A command line interface for WordPress

Commands » db » repair

wp db repair - Repair the database.

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.


$ wp db repair
Success: Database repaired.