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.

Related services

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

cPanel server management

hardening, migrations and 24/7 monitoring, with no long-term contract.

cPanel, Plesk and LiteSpeed licences

for VPS and dedicated servers, with installation help on demand.

Was this answer helpful?

Still stuck? Open a ticket