当前位置:网站首页>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
边栏推荐
- [brush questions] top101 must be brushed in the interview of niuke.com
- 化不掉的钟薛高,逃不出网红产品的生命周期
- Sort according to a number in a string in a column of CSV file
- 2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
- Process of obtaining the electronic version of academic qualifications of xuexin.com
- C language custom type: struct
- 从表中名称映射关系修改视频名称
- Upgrade tidb with tiup
- sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
- What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
猜你喜欢
Use Alibaba icon in uniapp
JVM performance tuning and practical basic theory - Part 1
ESP系列引脚說明圖匯總
sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
matplotlib. Widgets are easy to use
synchronized 解决共享带来的问题
Deep learning: derivation of shallow neural networks and deep neural networks
【ROS】usb_cam相机标定
【刷题】牛客网面试必刷TOP101
Pointer advanced --- pointer array, array pointer
随机推荐
gcc动态库fPIC和fpic编译选项差异介绍
China polyether amine Market Forecast and investment strategy report (2022 Edition)
Leetcode skimming (5.29) hash table
What is CSRF (Cross Site Request Forgery)?
Function coritization
VMware virtualization cluster
Colorlog combined with logging to print colored logs
Char to leading 0
Online yaml to CSV tool
[2022 广东省赛M] 拉格朗日插值 (多元函数极值 分治NTT)
Use br to back up tidb cluster data to S3 compatible storage
Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
egg. JS project deployment online server
【刷题】牛客网面试必刷TOP101
matplotlib. Widgets are easy to use
Cisp-pte practice explanation
JVM 快速入门
使用 BR 备份 TiDB 集群数据到兼容 S3 的存储
JS inheritance method
根据csv文件某一列字符串中某个数字排序