PDF (A4) - 40.3Mb
Man Pages (TGZ) - 262.0Kb
Man Pages (Zip) - 367.6Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb
Thelog_status table provides information that enables an online backup tool to copy the required log files without locking those resources for the duration of the copy process.
When thelog_status table is queried, the server blocks logging and related administrative changes for just long enough to populate the table, then releases the resources. Thelog_status table informs the online backup which point it should copy up to in the source's binary log andgtid_executed record, and the relay log for each replication channel. It also provides relevant information for individual storage engines, such as the last log sequence number (LSN) and the LSN of the last checkpoint taken for theInnoDB storage engine.
Thelog_status table has these columns:
SERVER_UUIDThe server UUID for this server instance. This is the generated unique value of the read-only system variable
server_uuid.LOCALThe log position state information from the source, provided as a single JSON object with the following keys:
binary_log_fileThe name of the current binary log file.
binary_log_positionThe current binary log position at the time the
log_statustable was accessed.gtid_executedThe current value of the global server variable
gtid_executedat the time thelog_statustable was accessed. This information is consistent with thebinary_log_fileandbinary_log_positionkeys.
REPLICATIONA JSON array of channels, each with the following information:
channel_nameThe name of the replication channel. The default replication channel's name is the empty string (“”).
relay_log_fileThe name of the current relay log file for the replication channel.
relay_log_posThe current relay log position at the time the
log_statustable was accessed.
STORAGE_ENGINESRelevant information from individual storage engines, provided as a JSON object with one key for each applicable storage engine.
Thelog_status table has no indexes.
TheBACKUP_ADMIN privilege, as well as theSELECT privilege, is required for access to thelog_status table.
TRUNCATE TABLE is not permitted for thelog_status table.
PDF (A4) - 40.3Mb
Man Pages (TGZ) - 262.0Kb
Man Pages (Zip) - 367.6Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb