Tag

redo log

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
May 12, 2025 · Databases

Understanding the Write Order of Undo Log, Redo Log, and Binlog in MySQL Transactions

This article explains the sequential write process of Undo Log, Redo Log, and Binlog during MySQL transaction execution and commit phases, describes the involved caches, two‑phase commit rationale, and outlines key configuration parameters for each log type.

MySQLTransactionTwo-Phase Commit
0 likes · 10 min read
Understanding the Write Order of Undo Log, Redo Log, and Binlog in MySQL Transactions
Lobster Programming
Lobster Programming
Apr 10, 2025 · Databases

Why Does MySQL Use Two-Phase Commit? Understanding Redo Log and Binlog Coordination

MySQL employs a two‑phase commit to synchronize InnoDB’s redo log with the server’s binlog, ensuring atomicity during transaction commits and preventing data inconsistencies during crash recovery or replication, while also introducing lock contention, extra I/O, and potential blocking.

MySQLTransactionTwo-Phase Commit
0 likes · 5 min read
Why Does MySQL Use Two-Phase Commit? Understanding Redo Log and Binlog Coordination
IT Services Circle
IT Services Circle
Dec 21, 2024 · Databases

Understanding MySQL Architecture: Storage Engine, Buffer Pool, Logs, and Indexes

This article explains how MySQL stores and manages data by introducing the InnoDB storage engine, its buffer pool, data pages, B+Tree and adaptive hash indexes, change buffer, undo/redo logs, binlog, and the server layer that parses, optimizes, and executes SQL statements.

Buffer PoolIndexesInnoDB
0 likes · 13 min read
Understanding MySQL Architecture: Storage Engine, Buffer Pool, Logs, and Indexes
Zhuanzhuan Tech
Zhuanzhuan Tech
Dec 13, 2024 · Databases

Understanding MySQL Architecture and Log Mechanisms for ACID Transactions

This article provides a comprehensive overview of MySQL's layered architecture, the functions and core components of the server layer, and detailed explanations of Undo Log, Redo Log, and Binlog mechanisms that together ensure the ACID properties of transactions, including practical execution flows for queries and updates.

ACIDDatabase ArchitectureMySQL
0 likes · 29 min read
Understanding MySQL Architecture and Log Mechanisms for ACID Transactions
Selected Java Interview Questions
Selected Java Interview Questions
Sep 21, 2024 · Databases

Understanding InnoDB Storage Engine: Logs, Buffer Pool, and Data Write Process

This article explains the core components of MySQL's InnoDB storage engine—including undo log, redo log, buffer pool, change buffer, and binlog—detailing their roles in data writing, crash recovery, MVCC, and master‑slave synchronization, and describing related flushing strategies and LRU management.

Buffer PoolDatabase InternalsInnoDB
0 likes · 11 min read
Understanding InnoDB Storage Engine: Logs, Buffer Pool, and Data Write Process
Sanyou's Java Diary
Sanyou's Java Diary
Jul 11, 2024 · Databases

Master MySQL Redo Log & Binlog: 15 Essential Interview Questions Explained

This article presents 15 classic MySQL log interview questions and provides detailed explanations of redo log, WAL, binlog, undo log, two‑phase commit, log flushing mechanisms, and recovery strategies, helping readers deepen their database knowledge and ace technical interviews.

Database RecoveryMySQLWAL
0 likes · 18 min read
Master MySQL Redo Log & Binlog: 15 Essential Interview Questions Explained
Sanyou's Java Diary
Sanyou's Java Diary
Dec 21, 2023 · Databases

What Happens Inside MySQL When You Run an UPDATE? A Deep Dive

This article explains the complete execution process of a MySQL UPDATE statement, covering InnoDB page structures, tablespaces, buffer pool caching, redo/undo logs, binlog, and the two‑phase commit mechanism, helping readers understand how MySQL ensures data consistency and durability.

Buffer PoolInnoDBMySQL
0 likes · 21 min read
What Happens Inside MySQL When You Run an UPDATE? A Deep Dive
Sanyou's Java Diary
Sanyou's Java Diary
Jul 3, 2023 · Databases

Master MySQL Internals: Architecture, Logs, and Recovery Explained

This article walks through MySQL's three‑layer logical architecture, explains the roles of redo, undo, bin, and relay logs, shows how they ensure crash‑safety and point‑in‑time recovery, and provides practical commands for inspecting and configuring these logs.

InnoDBMySQLReplication
0 likes · 18 min read
Master MySQL Internals: Architecture, Logs, and Recovery Explained
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 12, 2023 · Databases

Enabling and Troubleshooting MySQL InnoDB REDO Log Archiving

This article explains how to activate MySQL 8.0.17+ REDO log archiving, configure the required directory and permissions, resolve common errors when using backup tools like mysqlbackup, and demonstrates manual archiving via the MySQL client with proper user privileges.

Database AdministrationInnoDBMySQL
0 likes · 9 min read
Enabling and Troubleshooting MySQL InnoDB REDO Log Archiving
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 6, 2022 · Databases

Understanding MySQL Crash Recovery and the Role of Redo Logs

This article explains how MySQL performs crash recovery by using Redo logs, doublewrite buffers, undo tablespace handling, transaction subsystem initialization, and the processing of active, prepared, and committed transactions to restore data pages and ensure consistency after an unexpected shutdown.

DoublewriteInnoDBMySQL
0 likes · 28 min read
Understanding MySQL Crash Recovery and the Role of Redo Logs
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 3, 2022 · Databases

How to Change MySQL REDO Log File Size Online in MySQL 8.0.30 and Later

This article explains the new online REDO log size adjustment feature introduced in MySQL 8.0.30, compares it with the cumbersome pre‑8.0.30 procedure, and provides step‑by‑step commands and code snippets for both legacy and modern methods.

Database AdministrationInnoDBMySQL
0 likes · 8 min read
How to Change MySQL REDO Log File Size Online in MySQL 8.0.30 and Later
IT Services Circle
IT Services Circle
Jul 20, 2022 · Databases

Understanding MySQL InnoDB Redo Log Generation, Buffering, and Flushing Mechanisms

This article explains the lifecycle of MySQL InnoDB redo logs—from generation during DML/DDL operations, through writing into the log buffer, to being flushed into the redo log file and finally persisted on disk—detailing the roles of mtr, log_writer, and log_flusher threads.

ConcurrencyDatabase InternalsInnoDB
0 likes · 20 min read
Understanding MySQL InnoDB Redo Log Generation, Buffering, and Flushing Mechanisms
IT Services Circle
IT Services Circle
Jun 26, 2022 · Databases

Understanding MySQL's Layered Architecture: Buffer Pool, Redo Log, Undo Log, and Binlog

This article explains MySQL's layered design, detailing how the Server and InnoDB storage engine interact, the role of the Buffer Pool in caching data, and the functions of redo log, undo log, and binlog in ensuring durability, recovery, and replication.

Buffer PoolDatabase ArchitectureInnoDB
0 likes · 14 min read
Understanding MySQL's Layered Architecture: Buffer Pool, Redo Log, Undo Log, and Binlog
Sanyou's Java Diary
Sanyou's Java Diary
Mar 5, 2022 · Databases

Unlock MySQL’s Secrets: Redo Log, Undo Log, Binlog & Transaction Mechanics

This article delves into MySQL’s internal logging mechanisms—redo log, undo log, and binlog—explaining their structures, purposes, and interactions, and then explores transaction concepts such as dirty reads/writes, non‑repeatable reads, phantom reads, isolation levels, and the MVCC implementation that ensures data consistency.

Isolation LevelsMVCCMySQL
0 likes · 11 min read
Unlock MySQL’s Secrets: Redo Log, Undo Log, Binlog & Transaction Mechanics
Wukong Talks Architecture
Wukong Talks Architecture
Sep 26, 2021 · Databases

Understanding MySQL Redo Log and Binlog: Architecture, Mechanisms, and Two‑Phase Commit

This article explains MySQL's two essential logs—redo log and binlog—by describing the database's layered architecture, the write‑ahead logging mechanism, persistence strategies, crash‑safe guarantees, and how a two‑phase commit ensures consistency between them.

MySQLTransactionTwo-Phase Commit
0 likes · 12 min read
Understanding MySQL Redo Log and Binlog: Architecture, Mechanisms, and Two‑Phase Commit
macrozheng
macrozheng
Sep 17, 2021 · Databases

Understanding MySQL Binlog, Redo Log, and Undo Log: How They Ensure Data Consistency

This article explains MySQL’s essential logging mechanisms—binary log, redo log, and undo log—detailing their structures, purposes, configuration parameters, and how they work together to support replication, crash recovery, and transaction durability while balancing performance and consistency.

MySQLbinlogdatabase logging
0 likes · 10 min read
Understanding MySQL Binlog, Redo Log, and Undo Log: How They Ensure Data Consistency
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 8, 2021 · Databases

Why Xtrabackup Does Not Need to Backup Binlog Files

The article explains that Xtrabackup only needs to ensure consistency between data and the binlog position, not full binlog data, because its backup process captures only committed or not‑started transactions, eliminating the need to back up the binlog itself.

MySQLTwo-Phase Commitbackup
0 likes · 6 min read
Why Xtrabackup Does Not Need to Backup Binlog Files
Java Architecture Diary
Java Architecture Diary
Aug 6, 2021 · Databases

How Relational Databases Ensure Durability: Inside Pages, Undo & Redo Logs

This article explains the internal mechanisms of relational databases, covering data pages, buffer pools, undo and redo logs, checkpointing, and how these components work together to provide atomicity, durability, and crash recovery while minimizing disk I/O.

Checkpointdata pagesdatabases
0 likes · 7 min read
How Relational Databases Ensure Durability: Inside Pages, Undo & Redo Logs