It has not been added since mysql binlog restarted mysql.

and how to get the original sql it executes

< hr >

show binlog events I used this statement. It turns out that this defaults to the first file

.
Nov.01,2021

mysql restart will generate a new binlog file. Execute show binary logs; on the command line to view the penultimate file, which is the record you executed before restart


show binary logs can view all binlog, and then go to
mysqlbinlog binlog_filename under the binlog directory path to view binlog content

.
Menu