当前位置:网站首页>The mysqlbinlog command uses
The mysqlbinlog command uses
2022-07-06 08:30:00 【wx5caecf2ed0645】
Common parameters :
--start-datetime=datetime From the binary log 1 Date time is equal to or later than datetime The event of the parameter starts reading .datetime The value is relative to the run time mysqlbinlog Local time zone on your machine . The value format should conform to DATETIME or TIMESTAMP data type .
--stop-datetime=datetime From the binary log 1 Date time is equal to or later than datetime The event of parameter starts and stops reading . About datetime For a description of the value, see --start-datetime Options . This option can help you recover in a timely manner .
--start-position=N From the binary log 1 A position is equal to N Parameter when the event starts reading .
--stop-position=N From the binary log 1 Positions equal to and greater than N Parameter when the event starts and stops reading .
--base64-output=DECODE-ROWS The row Patterns bring sql change
-d And --database The effect is the same , Specify a database name .
--offset=N,-o N Skip the former N Entries .
Be careful :
1. Do not view the currently being written binlog file
2. Do not add --force Parameters force access
3. If binlog The format is row mode , Please add -vv Parameters
Based on start / End time
mysqlbinlog --start-datetime='2018-07-10 00:00:00' --stop-datetime='2018-07-10 01:01:01' -d Library name Binary
be based on pos value
mysqlbinlog --start-position=107 --stop-position=1000 -d Library name Binary
Convert to readable text
mysqlbinlog --base64-output=DECODE-ROWS -vv -d Library name Binary
边栏推荐
猜你喜欢
Online yaml to CSV tool
【MySQL】鎖
IOT -- interpreting the four tier architecture of the Internet of things
【MySQL】数据库的存储过程与存储函数通关教程(完整版)
PLT in Matplotlib tight_ layout()
Chrome浏览器的crash问题
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
Beijing invitation media
[brush questions] top101 must be brushed in the interview of niuke.com
Analysis of pointer and array written test questions
随机推荐
[luatos-air551g] 6.2 repair: restart caused by line drawing
All the ArrayList knowledge you want to know is here
Use Alibaba icon in uniapp
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
Wincc7.5 download and installation tutorial (win10 system)
China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
电脑F1-F12用途
使用 BR 备份 TiDB 集群数据到兼容 S3 的存储
PLT in Matplotlib tight_ layout()
Online yaml to CSV tool
使用 BR 恢复 S3 兼容存储上的备份数据
备份与恢复 CR 介绍
China dihydrolaurenol market forecast and investment strategy report (2022 Edition)
gcc动态库fPIC和fpic编译选项差异介绍
leetcode刷题 (5.29) 哈希表
ESP series pin description diagram summary
Precise query of tree tree
JS inheritance method
Modify the video name from the name mapping relationship in the table