Updated: 28 September 2026 · Applies to: cPanel & WHM 138 (WHM, root access)
On a VPS or dedicated server, the root user can check and repair all MySQL/MariaDB tables at once with mysqlcheck, without stopping the database server.
Check all tables
mysqlcheck --all-databases --check
Repair tables that need it
mysqlcheck --all-databases --auto-repair
To work on one database only, replace --all-databases with the database name. In WHM, Database Services › Repair Databases does the same for one database.
Note: Repair applies to MyISAM and Aria tables. InnoDB tables recover automatically after a crash and cannot be repaired this way. If an InnoDB table reports corruption, take a backup with mysqldump first and contact support. Avoid the old myisamchk method on a running server.