mysql 5.7.13 log_【MySQL 5.7 Reference Manual】15.4.13 Redo Log(Redo日志)

15.4.13 Redo Log

(Redo日志)

15.4.13.1 Group Commit for Redo Log Flushing

(基於

組提交的

Redo日志刷新)

The redo log is a disk-based data structure used during crash recovery to correct data written by incomplete transactions. During normal operations, the redo log encodes requests to change InnoDB table data that result from SQL statements or low-level API calls. Modifications that did not finish updating the data files before an unexpected shutdown are replayed automatically during initialization, and before the connections are accepted. For information about the role of the redo log in crash recovery, see Section 15.18.1, “The InnoDB Recovery Process”.

redo日志基於磁盤的數據結構,在崩潰恢復期間用於糾正不完整事務所寫入的數據。在正常操作情況下,redo日志編碼請求以改變InnoDB表數據,這些數據來自於SQL語句或低級API調用的結果。如果在意外關閉之前更新數據文件的操作沒有結束,這些修改在初始化期間(連接被接收接受之前)會自動重新執行。

By default, the redo log is physically represented on disk as a set of files, named ib_logfile0 and ib_logfile1. MySQL writes to the redo log files in a circular fashion. Data in the redo log is encoded in terms of records affected; this data is collectively referred to as redo. The passage of data through the redo log is represented by an ever-increasing LSN value.

默認情況下,redo日志物理上表現為磁盤上的一堆文件,名為ib_logfile0和ib_logfile1。MySQL以循環方式寫入redo日志文件。redo日志中的數據按照受影響的記錄進行編碼;這些數據整體被用於redo。數據穿過redo日志的通道用一個不斷增長的LSN值表示。

For related information, see:

相關信息,請參考:

- Section 15.6.1, “InnoDB Startup Configuration”

- 章節15.6.1,“InnoDB啟動配置”

- Section 9.5.4, “Optimizing InnoDB Redo Logging”

- 章節9.5.4,“優化InnoDB Redo日志”

- Section 15.7.2, “Changing the Number or Size of InnoDB Redo Log Files”

- 章節15.7.2,“修改InnoDB Redo日志文件的數量或大小”

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值