当前位置:网站首页>Why does MySQL need two-phase commit
Why does MySQL need two-phase commit
2022-07-06 04:45:00 【Chirp cat】
MySQL Why a two-phase submission is needed
Two stage submission diagram

Why a two-phase submission is needed ?
Guarantee binlog And redolog Data consistency .
If there is no two-stage submission :
First write redolog, To write binlog:
redolog finish writing sth. , I haven't written yet binlog,MySQL Downtime . After the restart ,redolog There are records in it ,MySQL Judge whether the transaction is submitted successfully , but binlog There is no record in the ,binlog And redolog Data inconsistency occurred . because binlog Yes, append write log , In the future binlog This data will always be missing . If used later binlog Recover the data at this point in time , There will be data loss .First write binlog, To write redolog:
binlog finish writing sth. , I haven't written yet redolog,MySQL Downtime . After the restart ,redolog There is no record of ,MySQL Judge transaction commit failure , however binlog There's a record in ,binlog And redolog Data inconsistency occurred . If you use it later binlog Restore data , There is one more transaction operation .
边栏推荐
- [detailed steps of FreeRTOS shift value for the first time]
- The underlying structure of five data types in redis
- Can Flink SQL read multiple topics at the same time. How to write in with
- ue5 小知识 FreezeRendering 查看视锥内渲染的物体
- SQL注入漏洞(MSSQL注入)
- [05-1, 05-02, 05-03] network protocol
- Easyrecovery reliable and toll free data recovery computer software
- [network] channel attention network and spatial attention network
- Fuzzy -- basic application method of AFL
- The video in win10 computer system does not display thumbnails
猜你喜欢

RTP GB28181 文件测试工具

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

Yyds dry inventory automatic lighting system based on CC2530 (ZigBee)

IPv6 comprehensive experiment

Visio draws Tai Chi

行业专网对比公网,优势在哪儿?能满足什么特定要求?

RTP gb28181 document testing tool
![[mathematical modeling] differential equation -- sustainable development of fishing industry](/img/7c/2ab6f2a34bc2c97318537ec8e0b0c5.png)
[mathematical modeling] differential equation -- sustainable development of fishing industry

8. Static file

Meet diverse needs: jetmade creates three one-stop development packages to help efficient development
随机推荐
Ue5 small knowledge points to enable the setting of lumen
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Case of Jiecode empowerment: professional training, technical support, and multiple measures to promote graduates to build smart campus completion system
MIT CMS. 300 session 8 – immersion / immersion
Luogu deep foundation part 1 Introduction to language Chapter 2 sequential structure programming
麥斯克電子IPO被終止:曾擬募資8億 河南資產是股東
Quick sort
MPLS experiment
【HBZ分享】云数据库如何定位慢查询
ISP learning (2)
Vulnerability discovery - vulnerability probe type utilization and repair of web applications
Yyds dry goods inventory OSI & tcp/ip
[detailed steps of FreeRTOS shift value for the first time]
ue5 小知识 FreezeRendering 查看视锥内渲染的物体
牛顿插值法
Redis 排查大 key 的4种方法,优化必备
Postman管理测试用例
RTP GB28181 文件测试工具
MySQL reported an error datetime (0) null
Mysql database storage engine