CertGrid CertGrid
Troubleshooting·MySQL

MySQL Point-in-Time Recovery

A dump restores last night. The binary log holds everything since - including the rows a mistaken `DELETE` removed, with their values still readable. Finding the damage is the part that has to be right before any replay.

Backup and Restore Guide 25 of 45 Advanced

Written against the versions above. `--base64-output=DECODE-ROWS --verbose` is what makes ROW-format events readable. Without both flags the output is base64 blobs.

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. Cause the damage

  2. Find the current log and read what it recorded

  3. Locate the boundary you would replay to

Official sources