当前位置:网站首页>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
边栏推荐
- Chrono usage notes
- timer使用备注
- 4-操作列表(循环结构)
- Quickly set up PgSQL for serverless
- Q & A on cloud development cloudbase hot issues of "Huage youyue phase I"
- 从 jsonpath 和 xpath 到 SPL
- 解决 These dependencies were not found: * core-js/modules/es6.array.fill in xxx 之类的问题
- Thread support
- js实现查看一个数组对象中是否包含另一个数组对象中的值
- Using kubeconfig files to organize cluster access
猜你喜欢

RDD的执行原理

本地备份和还原 SQL Server 数据库

闲谈:3AC到底发生了什么?

【资料上新】迅为基于3568开发板的NPU开发资料全面升级

【008】表格数据逐行筛选,跳出for循环及跳过本次循环思路_#VBA

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

Cloud development who is the source code of undercover applet

First acquaintance with JUC - day01

Introduction of model compression tool based on distiller

Cold thinking on the hot track: multiplier effect is the fundamental requirement of East West calculation
随机推荐
Mysql database recovery case sharing
atguigu----16-自定义指令
Using kubeconfig files to organize cluster access
Open cooperation and win-win future | Fuxin Kunpeng joins Jinlan organization
Any remarks
关于h5页面苹果手机使用fixed定位tabbar最底部时遮挡内容问题
《canvas》之第1章 canvas概述
What challenges does the video streaming media platform face in transmitting HD video?
自动化测试的生命周期是什么?
ImportError: cannot import name ‘process_pdf‘ from ‘pdfminer.pdfinterp‘错误完全解决
Teach you how to use the reflect package to parse the structure of go - step 2: structure member traversal
Solution to the error of running NPM run eject
The seminar on "global IPv6 development and outlook 2020-2021" was held in Beijing
【资料上新】迅为基于3568开发板的NPU开发资料全面升级
闲谈:3AC到底发生了什么?
希尔伯特-黄变换
What industries and scenarios can the easynvr/easygbs/easycvr platform developed by tsingsee green rhino video be used in?
行内元素、块元素、行内块元素
第 1 篇:搭建OpenGL环境
交友相亲类软件是如何割你韭菜的