2024-07-08
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
reverse_sql is a tool for parsing and converting MySQL binary logs (binlog). It can convert database change operations (such as insert, update, delete) recorded in binary log files into reverse SQL statements to roll back and recover data from system or human errors.
**ps: **Binary log needs to be enabled (MySQL installed with one-click script is enabled by default)
SHOW VARIABLES LIKE ‘log_bin’;
**ps:** The binary log needs to be in ROW format (MySQL installed by one-click script defaults to ROW)
SHOW VARIABLES LIKE ‘binlog_format’;
SHOW VARIABLES LIKE ‘log_bin_basename’;
/usr/local/mysql/bin/mysqlbinlog --no-defaults --base64-output=DECODE-ROWS -v --skip-gtids ON.000706