4087
MySQLERRORCommonHIGH confidence

InnoDB cannot read corrupted page

Production Risk

Critical — Corrupted pages cause data loss and may make the database unrecoverable without a backup.

Why it happens
  1. 1Physical disk failure or bad sector on the storage device.
  2. 2File system corruption resulting in garbled page data.
  3. 3Partial write caused by a crash left the page in an inconsistent state.

Fix 1

Run innochecksum to identify corrupted pages

Why this works

innochecksum -v /var/lib/mysql/ibdata1 reports checksum mismatches page by page.

Fix 2

Restore the affected tablespace from backup

Why this works

The only safe recovery from a corrupted page is restoring from a verified backup.

Fix 3

Use innodb_force_recovery as a last resort

Why this works

Set innodb_force_recovery=1 to 6 incrementally to dump data from a partially recoverable database.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 4087 ER_INNODB_CANNOT_READ_PAGE

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MySQL errors