当前位置:网站首页>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
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
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
Wincc7.5 download and installation tutorial (win10 system)
游戏解包的危害及资源加密的重要性
ESP系列引脚說明圖匯總
Ruffian Heng embedded bimonthly, issue 49
指针进阶---指针数组,数组指针
Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
随机推荐
Summary of MySQL index failure scenarios
【Nvidia开发板】常见问题集 (不定时更新)
[2022 Guangdong saim] Lagrange interpolation (multivariate function extreme value divide and conquer NTT)
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
Use Alibaba icon in uniapp
gcc动态库fPIC和fpic编译选项差异介绍
IoT -- 解读物联网四层架构
[cloud native] teach you how to build ferry open source work order system
China's high purity aluminum target market status and investment forecast report (2022 Edition)
Let the bullets fly for a while
All the ArrayList knowledge you want to know is here
电脑F1-F12用途
[MySQL] lock
logback1.3. X configuration details and Practice
2022.02.13 - NC001. Reverse linked list
egg. JS project deployment online server
How to use information mechanism to realize process mutual exclusion, process synchronization and precursor relationship
JVM performance tuning and practical basic theory - Part 1
China vanadium battery Market Research and future prospects report (2022 Edition)
Introduction to number theory (greatest common divisor, prime sieve, inverse element)