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

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

This guide includes

Use this before and after an upgrade. This matters because the two checks answer different questions - one verifies structure and indexes as they are now, the other finds what a newer version would refuse.

Before you start

  1. Check every table in the schema

  2. Ask what an upgrade would complain about

Official sources