当前位置:网站首页>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
边栏推荐
- leetcode:232. Realize queue with stack [two stacks, one auxiliary and one simulated queue]
- 破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台
- 事件相关电位ERP的皮层溯源分析
- 如何配置 logback?30分钟让你彻底学会代码熬夜敲
- 真正的测试 =“半个产品+半个开发”?
- Small programs have a "big" role in the industrial Internet
- DTCC2022 中国数据库技术大会最新议程出炉
- After studying this series of notes about software testing, it is a "bonus" to enter the factory
- 又拍云 Redis 的改进之路
- [try to hack] upload labs (temporarily write to 12)
猜你喜欢

UWB精准定位方案,厘米级高精度技术应用,智能配对感应技术

After 3 years of testing experience, do you know the state transition method for use case design?

自学编程能看得懂代码,但是自己写不出来怎么办

C# Winfrom Chart图表控件 柱状图、折线图

Sophon kg upgrade 3.1: break down barriers between data and liberate enterprise productivity

Cortical traceability analysis of ERP
![leetcode:139. Word splitting [DFS + memory]](/img/6f/8936ed3579c6a6dc3d8d312b413aff.png)
leetcode:139. Word splitting [DFS + memory]

It's also a test. Why do others get an annual salary of 30w+?

美国芯片再遭重击,Intel或将被台积电击败而沦落至全球第三

Privacy computing helps secure data circulation and sharing
随机推荐
贪婪的苹果计划提高iPhone14的价格,这将为中国手机提供机会
按键精灵打怪学习-多窗口多线程后台判断人物、宠物血量和宠物快乐度
挖财学堂证券开户安全嘛?
Key wizard play monster learning - multi window and multi thread background judgment of character, pet blood volume and pet happiness
Huaxia Fund: sharing of digital transformation practice achievements in the fund industry
Cv5200 ad hoc network remote WiFi module, UAV wireless image transmission application, HD low delay scheme
京东方:随着下半年旺季到来、促销拉动、新产品发布等影响,需求有望出现好转
【OpenGL】杂谈一、通过鼠标拖拽实现相机绕空间中的某点进行球面旋转查看
破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台
新股民如何网上开户?究竟网上开户是否安全么?
【Proteus仿真】数码管递加/递减带闪烁消隐显示
关于组织开展2022年南京市创新产品(第一批)申报工作的通知
It's also a test. Why do others get an annual salary of 30w+?
Self taught programming can understand the code, but what if you can't write it yourself
按键精灵打怪学习-窗口绑定保护技能和点击技能
locust性能压测工具
毕业生迷茫,中年人焦虑,职场路怎么越走越宽?
高级性能测试工程师面试必问十大问题
数学知识:求组合数 II—求组合数
[day 28] given a string s, please judge whether it is a palindrome string | palindrome judgment