当前位置:网站首页>Redolog and binlog
Redolog and binlog
2022-06-24 07:54: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
边栏推荐
- Quickly set up PgSQL for serverless
- Resolution error: LNK2019 unresolved external symbol
- How to cancel the display of the return button at the uniapp uni app H5 end the autobackbutton does not take effect
- 1-4metasploitable2介绍
- Ke Yi fallible point
- Exploration on Optimization of elastic expansion engineering
- 鸿蒙os开发三
- 日期、时间库使用备注
- 第 2 篇:绘制一个窗口
- Phonics
猜你喜欢

第 1 篇:搭建OpenGL环境

How to cancel the display of the return button at the uniapp uni app H5 end the autobackbutton does not take effect

SVN实测常用操作-记录操作大全

Baidu map, coordinate inversion, picking coordinate position

保留一位小数和保留两位小数

Echart 心得 (一): 有关Y轴yAxis属性

Basics of reptile B1 - scrapy (learning notes of station B)

爬虫基础B1——Scrapy(B站学习笔记)
![LeetCode 515 在每个数行中找最大值[BFS 二叉树] HERODING的LeetCode之路](/img/16/011ba3aef1315c39526daac7e3ec89.png)
LeetCode 515 在每个数行中找最大值[BFS 二叉树] HERODING的LeetCode之路

鸿蒙os开发三
随机推荐
How does dating software cut your leeks
Oracle-高级SQL限定查询
Thread considerations
AWTK 最新动态:Grid 控件新用法
【资料上新】迅为基于3568开发板的NPU开发资料全面升级
爬虫基础B1——Scrapy(B站学习笔记)
RDD的执行原理
报错“Computation failed in `stat_summary_hex()`”
What kind of experience is it when the Institute earns 20000 yuan a month!
exness:鲍威尔坚持抗通胀承诺,指出衰退是可能的
云开发谁是卧底小程序源码
Timer usage notes
BOM notes
Hongmeng OS development III
Part 2: drawing a window
Exploration on Optimization of elastic expansion engineering
免费ICP域名备案查接口
any类备注
线程的支持
Alibaba cloud full link data governance