CertGrid CertGrid
Hands-on Lab·MySQL

MySQL Integrity and Upgrade Checks

`CHECK TABLE` verifies structure and indexes; `mysqlcheck --check-upgrade` finds what an upgrade would object to. Both are cheap, and both are worth running before you need them.

Monitoring and Operations Guide 44 of 45 Intermediate

Written against the versions above. InnoDB detects most corruption at read time via page checksums, so explicit checks matter less than they did with MyISAM. They still matter before an upgrade.

Every command on this page ran on db-a01.
Server NameIP AddressOSRolesCPURAMHDD
db-a01192.168.0.81Ubuntu 26.04 LTSPrimary / Source / Replica Set Member 12 Core4 GB50 GB

Before you start

  1. Check every table in the schema

  2. Ask what an upgrade would complain about

Official sources