Overview

PDU provides data recovery methods for various MySQL failure scenarios. Choose the appropriate recovery method based on your situation.

Choose Your Recovery Scenario

Recovery Scenario Comparison

Recovery ScenarioMaterialsOutput
Recover from Corrupted Instancedata directory · FRM / SDIData SQL and DDL
Recover from Corrupted Data FileIBD · DDLData SQL
Recover Single Database Directorydata directory · metadataDatabase data SQL
Recover MyISAM Data FilesMYD / MYI · DDLComplete active records
Recover Deleted RecordsBinlog · DDLRecovery SQL
Recover Updated RecordsBinlog · DDLReverse recovery SQL
Recover Data from Undo and Redobase copy · Undo / RedoPage views and recovery SQL
Recover a Historical Binlog SnapshotROW Binlog · endpoint DDLHistorical table row set
Recover Scattered InnoDB Pagesimage · bindingSparse records and dependencies
Recover Dropped Tables Without Backupimage · DDLSurviving data SQL
Diagnosis and Native IMPORT AssistanceIBD · profilesDiagnosis and operation tasks
Recover Metadata for Other ObjectsTRG / FRM / DDObject attributes and definitions

Quick Start

Configure the data directory and output paths, start PDU and initialize, then select the database and recovery method.

MYSQL_DATADIR=/recovery-input/mysql/data
BINLOG=/recovery-input/mysql/binlog
RESMODE=tx
RESTYPE=delete
param datadir /recovery-input/mysql/data;
b;
\l;
use appdb;
\dt;

See the complete usage guide.

MySQL 文档