当前位置:网站首页>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
边栏推荐
- 延迟初始化和密封类
- 2022.02.13 - NC004. Print number of loops
- 备份与恢复 CR 介绍
- Mobile Test Engineer occupation yyds dry goods inventory
- China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- Configuring OSPF load sharing for Huawei devices
- [luatos-air551g] 6.2 repair: restart caused by line drawing
- 2022.02.13 - NC003. Design LRU cache structure
- Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
猜你喜欢
Leetcode question brushing (5.28) hash table
JVM performance tuning and practical basic theory - Part 1
【MySQL】日志
延迟初始化和密封类
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
JS inheritance method
【MySQL】数据库的存储过程与存储函数通关教程(完整版)
Cisp-pte practice explanation
根据csv文件某一列字符串中某个数字排序
Chrome浏览器的crash问题
随机推荐
Analysis of pointer and array written test questions
China's high purity aluminum target market status and investment forecast report (2022 Edition)
游戏解包的危害及资源加密的重要性
Fibonacci sequence
Remote storage access authorization
China vanadium battery Market Research and future prospects report (2022 Edition)
指针进阶---指针数组,数组指针
化不掉的钟薛高,逃不出网红产品的生命周期
sublime text的编写程序时的Tab和空格缩进问题
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Colorlog结合logging打印有颜色的日志
Sort according to a number in a string in a column of CSV file
Hcip day 16
ROS编译 调用第三方动态库(xxx.so)
China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
LDAP Application Section (4) Jenkins Access
Let the bullets fly for a while
Permutation and combination function
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
Upgrade tidb with tiup