diff --git a/README.md b/README.md index 5c427b3..038acb5 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ date modified: 2022-09-13, 23:19:02 - [事务](notes/programming/事务.md) - [synchronized](notes/programming/synchronized.md) - [Git](notes/programming/Git.md) -- [redolog](notes/programming/redolog.md) +- [redo log](redo%20log.md) - [Unicode](notes/programming/Unicode.md) - … diff --git a/inbox/Page Cache.md b/inbox/Page Cache.md new file mode 100644 index 0000000..e69de29 diff --git "a/inbox/redo log \345\222\214 binlog \347\232\204\344\270\244\351\230\266\346\256\265\346\217\220\344\272\244.md" "b/inbox/redo log \345\222\214 binlog \347\232\204\344\270\244\351\230\266\346\256\265\346\217\220\344\272\244.md" new file mode 100644 index 0000000..e69de29 diff --git "a/notes/programming/InnoDB \345\246\202\344\275\225\345\256\236\347\216\260\344\272\213\345\212\241 4 \347\211\271\346\200\247.md" "b/notes/programming/InnoDB \345\246\202\344\275\225\345\256\236\347\216\260\344\272\213\345\212\241 4 \347\211\271\346\200\247.md" index 4e89071..6024035 100644 --- "a/notes/programming/InnoDB \345\246\202\344\275\225\345\256\236\347\216\260\344\272\213\345\212\241 4 \347\211\271\346\200\247.md" +++ "b/notes/programming/InnoDB \345\246\202\344\275\225\345\256\236\347\216\260\344\272\213\345\212\241 4 \347\211\271\346\200\247.md" @@ -20,4 +20,4 @@ date modified: 2022-06-27, 09:04:10 - 脏写是通过加锁避免的 - 脏读和不可重复读,分别通过 `READ COMMITTED` 和 `REPEATABLE READ` 隔离级别解决,这两个隔离级别通过 [[MVCC]] 实现 - MySQL 通过 [[MySQL 锁#间隙锁]] 在 `REPEATABLE READ` 隔离级别下解决了幻读问题 -- 持久性是通过 [[redolog]] 保证 +- 持久性是通过 [[redo log]] 保证 diff --git a/notes/programming/MOC MySQL.md b/notes/programming/MOC MySQL.md index 64036e3..5b659b0 100644 --- a/notes/programming/MOC MySQL.md +++ b/notes/programming/MOC MySQL.md @@ -9,7 +9,7 @@ date modified: 2022-06-14, 14:54:18 - [[InnoDB 存储引擎]] - [[MyISAM 索引原理]] - 日志 - - [[redolog]] + - [[redo log]] - [[undo log]] - [[binlog]] - [[Buffer Pool]] diff --git a/notes/programming/binlog.md b/notes/programming/binlog.md index d36dcd8..6f19cc1 100644 --- a/notes/programming/binlog.md +++ b/notes/programming/binlog.md @@ -7,7 +7,7 @@ date modified: 2022-07-27, 11:16:27 - alias: - parent :: [[MOC MySQL]] -- siblings :: [[redolog]],[[undo log]] +- siblings :: [[redo log]],[[undo log]] - child :: - refs: [MySQL 日志:undo log、redo log、binlog 有什么用? | 小林coding](https://xiaolincoding.com/mysql/log/how_update.html#%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81-binlog) @@ -16,18 +16,19 @@ date modified: 2022-07-27, 11:16:27 binlog 是 binary log 的缩写,即二进制日志。特点: - Server 层日志,所有存储引擎都可以使用 -- 记录了所有数据库表结构变更和表数据修改的日志,不会记录查询类的操作 +- 记录了所有数据库表结构变更和表数据修改的日志,**不会记录查询类的操作** - binlog 是追加写,写满一个文件,就创建一个新的文件继续写,不会覆盖以前的日志,保存的是全量的日志 # 用途 - [[MySQL 主从复制]] - 备份 - -# 三种格式 - +- 恢复 # binlog 什么时候刷盘? 事务执行过程中产生的 binlog 写入 Server 层的 binlog cache 中,事务提交时再从 binlog cache 中写入 binlog 文件中。 +# 两阶段提交 + +[[redo log 和 binlog 的两阶段提交]] \ No newline at end of file diff --git a/notes/programming/redo log VS undo log.md b/notes/programming/redo log VS undo log.md index a32d76f..34d2365 100644 --- a/notes/programming/redo log VS undo log.md +++ b/notes/programming/redo log VS undo log.md @@ -6,7 +6,7 @@ date modified: 2022-07-27, 10:28:07 # Meta - alias: -- parent :: [[redolog]],[[undo log]] +- parent :: [[redo log]],[[undo log]] - siblings :: - child :: - refs: diff --git a/notes/programming/redolog.md b/notes/programming/redo log.md similarity index 98% rename from notes/programming/redolog.md rename to notes/programming/redo log.md index 7c05aff..8af1c4b 100644 --- a/notes/programming/redolog.md +++ b/notes/programming/redo log.md @@ -7,7 +7,7 @@ date modified: 2022-07-28, 23:31:25 - alias: - parent :: [[MOC MySQL]] -- siblings :: [[undo log]] +- siblings :: [[undo log]],[[binlog]] - child :: - refs: - [MySQL 日志:undo log、redo log、binlog 有什么用? | 小林coding](https://xiaolincoding.com/mysql/log/how_update.html#%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81-redo-log) @@ -85,3 +85,4 @@ InnoDB 的后台线程每隔 1 秒: # 两阶段提交 +[[redo log 和 binlog 的两阶段提交]] \ No newline at end of file diff --git a/notes/programming/undo log.md b/notes/programming/undo log.md index 5b3d385..0ae93fe 100644 --- a/notes/programming/undo log.md +++ b/notes/programming/undo log.md @@ -7,7 +7,7 @@ date modified: 2022-07-27, 10:28:13 - alias: **撤销日志**,回滚日志 - parent :: [[MOC MySQL]] -- siblings :: [[redolog]],[[binlog]] +- siblings :: [[redo log]],[[binlog]] - child :: [[redo log VS undo log]] - refs: - [MySQL 是怎样运行的:从根儿上理解 MySQL - 小孩子4919 - 掘金课程](https://juejin.cn/book/6844733769996304392/section/6844733770067607566)