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

--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

This guide includes

Use this when a dump gets you to last night and the damage happened this morning. This matters because the binary log holds everything since - so recovery is a restore plus a replay up to the moment before.

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