当前位置:网站首页>The process of updating a record in MySQL
The process of updating a record in MySQL
2022-06-29 10:27:00 【A ray of sunshine a】
stay MySQL in ,update Is to update data in place , Update data in place , Update data in place . Say the important things 3 All over . This is different from PGSQL Of .
update What is the specific process :
(1)、 For this article record The corresponding index plus X lock
(2)、 Write the modified data to redo.log in
(3)、 Back up the data before modification to undo.log in
(4)、 Backup complete , Update data in place , modify txid, take roll_ptr Point to undo.log Backup of this record in , Last commit transaction tx
(5)、 Commit transaction tx In the process , The server went down suddenly , When restarting again , replay redo.log Log in to repair data .
If it has not been submitted before tx The server suddenly went down before , But the corresponding dirty page already flush To disk file , When the engine is started again , According to undo.log The logs in the are used for data recovery
边栏推荐
- Installing and configuring wmware esxi 6.5.0 in VMware Workstation
- Codeforces Round #641 Div2
- 在实践中学习Spark计算框架(00)
- 在VMware workstation中安装WMware ESXi 6.5.0并进行配置
- Application of Pgp in encryption technology
- Recyclerview sticky (suspended) head
- manacher
- std::unique_ptr<T>与boost::scoped_ptr<T>的特殊性
- 2019.10.6 training summary
- 完全二叉树的权值 递归做法 ——最后的编程挑战
猜你喜欢
随机推荐
2019.10.30 learning summary
Seaweedfs security configuration
F5 big IP Icontrol rest command execution (cve-2022-1388)
走迷宫 bfs 中等+——最后的编程挑战
If [not] exists in MySQL
完全二叉树的权值 递归做法 ——最后的编程挑战
2019.10.27 training summary
Serpentine filling number
同花顺炒股软件可靠吗,安全吗?
Web漏洞手动检测分析
C#中Linq常用用法
HDU 6778 car (group enumeration -- > shape pressure DP)
winform使用zxing生成二维码
manacher
qgis制图
Text of the basic component of the shutter
2021年团体程序设计天梯赛-模拟赛
使用Rancher搭建Kubernetes集群
Solve the problem that zxing's QR code contains Chinese garbled code
Symphony tutorial








