当前位置:网站首页>Recovering data with MySQL binlog
Recovering data with MySQL binlog
2022-04-23 12:56:00 【Xiao an】
1、 Data preparation
1、 The data are as follows : common 28 Bar record

2、 Simulation delete :DELETE FROM sys_dict_data WHERE dict_type=‘sys_oper_type’

2、 Use binlog Restore data



binlog Content view
1、 Use show binlog events: Not very friendly , You can refer to the second

2、 Use mysqlbinlog
1、 adopt binlog Get content and output to file
-d: Filter logs based on the name of the database
-o: Skip the former N Line logs
-r, --result-fil: Output the log to the specified file
–start-datetime: Read the log after the specified time , Time format :yyyy-MM-dd HH:mm:ss
–stop-datetime: Read the log before the specified time , Time format :yyyy-MM-dd HH:mm:ss
–start-position: Read the log from the specified location
–stop-position: Read to the specified location to stop
–base64-output: stay row Under format , Show fake sql sentence
-v, --verbose: Show fake sql sentence ,-vv It can be for sql Statement to add remarks

2、 By looking at sql, Inverse analysis insert Of sql Statement to recover

版权声明
本文为[Xiao an]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230615437932.html
边栏推荐
- RT-thread中关键词解释及部分API
- Kubernets Getting started tutoriel
- SSM framework series - JUnit unit test optimization day2-3
- 0基础可以考CPDA数据分析师证书吗
- STM32 is connected to the motor drive, the DuPont line supplies power, and then the back burning problem
- Object. The disorder of key value array after keys
- Idea的src子文件下无法创建servlet
- Mysql8 installation
- 有趣的IDEA插件推荐,给你的开发工作增添色彩
- After the data of El table is updated, the data in the page is not updated this$ Forceupdate() has no effect
猜你喜欢

Resolve disagrees about version of symbol device_ create

STM32 control stepper motor (ULN2003 + 28byj)

风尚云网学习-h5的input:type属性的image属性

Aviation core technology sharing | overview of safety characteristics of acm32 MCU

精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!

解锁OpenHarmony技术日!年度盛会,即将揭幕!

Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow

STM32工程移植:不同型号芯片工程之间的移植:ZE到C8

Object. The disorder of key value array after keys

Kubernetes 入门教程
随机推荐
Pre competition practice of TIANTI competition
Baserecyclerviewadapterhelper realizes pull-down refresh and pull-up loading
甲辰篇 創世紀《「內元宇宙」聯載》
box-sizing
Packet capturing and sorting -- TCP protocol [8]
[daily question] chessboard question
Luogu p5540 [balkanoi2011] timeismoney | minimum product spanning tree problem solution
31. Next arrangement
[vulnhub range] - DC2
31. 下一个排列
如何实现点击一下物体播放一次动画
Introduction to servlet listener & filter
Resolve disagrees about version of symbol device_ create
XinChaCha Trust SSL Organization Validated
Wonderful review | the sixth issue of "source" - open source economy and industrial investment
Can I take the CPDA data analyst certificate for 0 foundation
NPDP | how can product managers not be excluded by programmers?
Unable to create servlet under SRC subfile of idea
If you were a golang interviewer, what questions would you ask?
BUUCTF WEB [BJDCTF2020]The mystery of ip