当前位置:网站首页>Redolog and binlog
Redolog and binlog
2022-06-29 16:29:00 【hy;】
mysql The log system of
mysql There are two important logs in
redolog
innodb The engine provides
Logic log , Record operations on data , must id=2 This line +1
redolog What problem does the log solve ?
We all write to disk frequently Efficiency is very low , therefore mysql This problem is solved by logging at design time
mysql When updating a table , Will record one first redo log journal ,innodb Wait for idle time to write to the disk , This operation is also known as WAL(write-Ahead-Loggin)
redolog It's fixed size , Write from the beginning , Write at the end and go back to the beginning
redolog Then record the log of the unwashed disk
With redo log,InnoDB It can guarantee that even if the database is restarted abnormally , No records submitted before will be lost , This ability is called crash-safe.
binlog
binlog from mysql server Provide
The physical log records the changes made on the data page binlog The previous log will not be overwritten
You may ask Why? binlog I won't support it crash-safe ?
I said before. binlog Full log of records , Record all operations redolog Recorded operation without disc brushing
When the database goes down and recovers binlog There is no way to know where the database went down Unable to recover precisely
and redolog You only need to swipe the disk to recover the data
Two-phase commit
Guarantee binlog and redolog All written into
边栏推荐
- 贪婪的苹果计划提高iPhone14的价格,这将为中国手机提供机会
- 按键精灵打怪学习-多窗口多线程后台判断人物、宠物血量和宠物快乐度
- Notice on organizing the declaration of Nanjing innovative products (the first batch) in 2022
- 【Try to Hack】XML
- How to install WordPress on a web site
- Key sprite fighting monsters - multi window and multi thread background skills
- [proteus simulation] 8-bit nixie tube dynamic scanning display change data
- STM32 key chattering elimination -- Thinking of entry state machine
- 暑期数据可视化分析展示效果
- 华夏基金:基金行业数字化转型实践成果分享
猜你喜欢

Cerebral cortex: predicting children's mathematical skills from task state and resting state brain function connections

工具链赋能百家,地平线开启智能驾驶量产的“马太效应”

如何配置 logback?30分钟让你彻底学会代码熬夜敲
![leetcode:232. Realize queue with stack [two stacks, one auxiliary and one simulated queue]](/img/be/844772e761c0ea6002c25483be93c0.png)
leetcode:232. Realize queue with stack [two stacks, one auxiliary and one simulated queue]

Tutorial | fNIRS data processing toolkit homer2 download and installation

DAP large screen theme development description
![leetcode:535. Encryption and decryption of tinyurl [mapping of URL and ID, ID self increment]](/img/16/6684eaadc949e27c66a742100cb8f8.png)
leetcode:535. Encryption and decryption of tinyurl [mapping of URL and ID, ID self increment]

代码大全读后感

数学知识复习:第一型曲线积分

图文带你彻底弄懂MySQL事务原子性之UndoLog
随机推荐
同样是做测试,为什么别人年薪30W+?
The rooster Electronic Society graphical programming real questions and answers analysis of the scratch grade test level 1 June 2022
Accelerate the implementation of intelligent driving projects? You still lack a truth evaluation system
MATLAB输出格式控制 %d,%f,%c,%s的用法
Is it safe to open a compass account and speculate in stocks? How individuals open accounts for stock trading
Sophon AutoCV:助力AI工业化生产,实现视觉智能感知
Small programs have a "big" role in the industrial Internet
水球图-利用动态波纹展示百分比
How to create a login page in WordPress
把这份关于软件测试一系列笔记研究完,进大厂是个“加分项”...
京东方:随着下半年旺季到来、促销拉动、新产品发布等影响,需求有望出现好转
进阶 | webgl性能优化初尝
Sophon autocv: help AI industrial production and realize visual intelligent perception
Tutorial | fNIRS data processing toolkit homer2 download and installation
教程|fNIRS数据处理工具包Homer2下载与安装
分片信息调哪个参数呢?用的是MySQLsource stream api,不是table api
实战 | Change Detection And Batch Update
对于产业互联网的认识,直接关系着我们究竟会以怎样的心态来看待它
【第28天】给定一个字符串S,请你判断它是否为回文字符串 | 回文的判断
DTCC2022 中国数据库技术大会最新议程出炉