Tagged articles
281 articles
Page 2 of 3
Architecture Digest
Architecture Digest
Apr 11, 2023 · Databases

Understanding MySQL Replication: Principles, Mechanisms, and Practical Applications

This article explains MySQL replication’s background, binlog formats, event types, positioning methods, asynchronous and semi‑synchronous workflows, parallel replication techniques, and real‑world deployment strategies such as HA components, middleware, remote binlog copying, and data‑transfer services, providing a comprehensive guide for building highly available and scalable MySQL infrastructures.

BinlogReplicationdatabase
0 likes · 26 min read
Understanding MySQL Replication: Principles, Mechanisms, and Practical Applications
vivo Internet Technology
vivo Internet Technology
Apr 5, 2023 · Databases

Understanding MySQL Replication: Principles, Mechanisms, and Practical Applications

MySQL replication copies data changes from a primary server to one or more replicas using binlog events—supporting statement, row, or mixed formats and GTID positioning—to provide real‑time backup, read‑write separation, high‑availability failover, and integration pipelines via asynchronous, semi‑synchronous, or centralized binlog services.

BinlogData ReliabilityGTID
0 likes · 30 min read
Understanding MySQL Replication: Principles, Mechanisms, and Practical Applications
21CTO
21CTO
Apr 4, 2023 · Databases

How to Keep MySQL and Redis In Sync: Two Practical Solutions Explained

This article compares two methods for synchronizing MySQL data with Redis cache—using MySQL triggers combined with a UDF function, and parsing MySQL binlog via tools like Canal—detailing their workflows, advantages, limitations, and implementation considerations.

BinlogCanalDatabase Replication
0 likes · 6 min read
How to Keep MySQL and Redis In Sync: Two Practical Solutions Explained
Su San Talks Tech
Su San Talks Tech
Mar 26, 2023 · Backend Development

Unlock Real-Time MySQL Data Sync with Alibaba Canal: A Hands‑On Guide

This article introduces Alibaba's open‑source Canal middleware, explains its architecture and high‑availability design, walks through MySQL binlog configuration, Canal setup, and provides a complete Java client example for real‑time data synchronization, cache refresh, and task dispatch scenarios.

BackendBinlogCanal
0 likes · 18 min read
Unlock Real-Time MySQL Data Sync with Alibaba Canal: A Hands‑On Guide
Java Architect Essentials
Java Architect Essentials
Mar 13, 2023 · Databases

Two Approaches to Synchronize MySQL Data with Redis Cache

This article explains two technical solutions for keeping MySQL data in sync with Redis cache—using a MySQL trigger with a UDF function and parsing MySQL binlog events—while also reviewing the Canal open‑source tool and discussing their trade‑offs and implementation details.

BinlogCanalDatabase Replication
0 likes · 6 min read
Two Approaches to Synchronize MySQL Data with Redis Cache
ITPUB
ITPUB
Jan 17, 2023 · Databases

Simplify MySQL Replication: Why GTID Beats Position‑Based Sync and How to Monitor Lag

This article examines MySQL’s transition from dual‑master to master‑slave replication, highlights the complexities of position‑based syncing, introduces GTID as a more reliable alternative, and provides practical steps to enable GTID and accurately monitor replication lag using seconds_behind_master, binlog positions, and GTID sets.

BinlogGTIDLag Monitoring
0 likes · 12 min read
Simplify MySQL Replication: Why GTID Beats Position‑Based Sync and How to Monitor Lag
dbaplus Community
dbaplus Community
Dec 18, 2022 · Backend Development

Mastering Cache Consistency: Strategies to Keep Redis and MySQL in Sync

This article explores the challenges of cache‑database consistency under the cache‑aside pattern, compares four cache‑update strategies, and provides practical techniques—including delayed double delete, MQ‑driven invalidation, and binlog subscription—to achieve near‑real‑time consistency while maintaining high read performance.

BinlogCache Consistencycache-aside
0 likes · 17 min read
Mastering Cache Consistency: Strategies to Keep Redis and MySQL in Sync
ITPUB
ITPUB
Nov 15, 2022 · Databases

How MySQL Executes an UPDATE: Inside InnoDB Pages, Buffer Pool, and Logs

This article walks through the complete lifecycle of a MySQL UPDATE statement, covering InnoDB page structure, tablespaces, the buffer pool, redo and undo logs, binlog, and the two‑phase commit process, illustrating each step with examples and command outputs.

BinlogInnoDBUPDATE
0 likes · 19 min read
How MySQL Executes an UPDATE: Inside InnoDB Pages, Buffer Pool, and Logs
ITPUB
ITPUB
Nov 3, 2022 · Databases

How to Diagnose and Resolve MySQL InnoDB Deadlocks in Production

This guide explains how to detect MySQL deadlock exceptions, retrieve and interpret InnoDB deadlock logs and binlog files, and use the information to pinpoint conflicting SQL statements and fix the underlying lock issues in live systems.

BinlogInnoDBSQL
0 likes · 9 min read
How to Diagnose and Resolve MySQL InnoDB Deadlocks in Production
DeWu Technology
DeWu Technology
Oct 31, 2022 · Databases

Analysis of Order Query Failures Caused by MySQL Master‑Slave Replication Lag and Mitigation Strategies

The e‑commerce platform’s order‑query alerts were caused by MySQL master‑slave replication lag—specifically, delayed redo‑log flushing let the slave receive binlog events before the master committed—so queries returned empty, a condition mitigated by retry logic, delayed MQ delivery, or emitting post‑commit business events.

BinlogMaster‑SlaveReplication
0 likes · 10 min read
Analysis of Order Query Failures Caused by MySQL Master‑Slave Replication Lag and Mitigation Strategies
Code Ape Tech Column
Code Ape Tech Column
Sep 19, 2022 · Databases

Query Separation: Optimizing Large Table Queries with Separate Read Stores

The article explains query separation as a technique to improve performance of massive database tables by storing write‑optimized data and read‑optimized copies in separate systems, discusses when to apply it, implementation methods, storage choices, consistency handling, and practical considerations.

Asynchronous ReplicationBinlogDatabase Optimization
0 likes · 8 min read
Query Separation: Optimizing Large Table Queries with Separate Read Stores
Programmer DD
Programmer DD
Sep 2, 2022 · Databases

Unlock MySQL Binlog: Powering Replication and Real‑World Business Use Cases

This article explains MySQL’s binlog, how it enables master‑slave replication, and explores three practical business uses—data heterogeneity, cache synchronization, and task dispatch—showing how a middleware that pretends to be a slave can leverage binlog events to improve system architecture and performance.

BinlogReplicationcaching
0 likes · 7 min read
Unlock MySQL Binlog: Powering Replication and Real‑World Business Use Cases
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 18, 2022 · Databases

Analysis of Commit Blocking and SHOW MASTER STATUS Contention in MySQL 5.7 Replication

The article examines how a large transaction in MySQL 5.7 can block the SHOW MASTER STATUS command by holding the lock_log during the commit's flush stage, analyzes the commit and SHOW MASTER STATUS code paths, and proposes mitigation strategies such as avoiding big transactions and using SELECT @@global.gtid_executed.

Binlogcommitlarge transaction
0 likes · 7 min read
Analysis of Commit Blocking and SHOW MASTER STATUS Contention in MySQL 5.7 Replication
Ops Development Stories
Ops Development Stories
Jun 21, 2022 · Databases

Inside MySQL UPDATE: How Undo, Redo, and Binlog Work

This article explains in detail what happens inside MySQL when an UPDATE statement is executed, covering the execution flow, the roles of undo log, redo log, and binlog, buffer pool mechanics, two‑phase commit, group commit, and practical optimization tips.

Binlogbuffer poolmysql
0 likes · 40 min read
Inside MySQL UPDATE: How Undo, Redo, and Binlog Work
Aikesheng Open Source Community
Aikesheng Open Source Community
May 10, 2022 · Databases

Analysis and Reproduction of MySQL Binlog Replication Error 1236 (Could Not Open Log File)

This article analyzes a MySQL replication failure where the slave reports error 1236 "Could not open log file", explains the root cause involving duplicate entries in the binlog index after manual deletion of active binlog files, and provides step‑by‑step reproduction procedures and preventive recommendations.

BinlogGTIDerror-1236
0 likes · 8 min read
Analysis and Reproduction of MySQL Binlog Replication Error 1236 (Could Not Open Log File)
dbaplus Community
dbaplus Community
Apr 10, 2022 · Databases

Designing a High‑Performance Distributed KV Store for B‑Station

This article details the background, architecture, core features, and operational practices of a custom high‑reliability, high‑throughput key‑value storage system that combines Raft replication, flexible partitioning, binlog support, bulk loading, and multi‑active deployment for B‑Station's diverse data workloads.

BinlogPartitioningRaft replication
0 likes · 22 min read
Designing a High‑Performance Distributed KV Store for B‑Station
Java High-Performance Architecture
Java High-Performance Architecture
Mar 20, 2022 · Databases

Master MySQL Data Recovery: From Full Backups to Point‑in‑Time Restoration

This guide explains how to prevent data loss in MySQL by enabling row‑based binlog, performing full restores with mysqldump or xtrabackup, executing point‑in‑time recovery, restoring individual tables, skipping erroneous SQL statements using binlog or GTID, and leveraging flashback tools such as binlog2sql and MyFlash.

BackupBinlogFlashback
0 likes · 15 min read
Master MySQL Data Recovery: From Full Backups to Point‑in‑Time Restoration
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.

BinlogIsolation LevelsMVCC
0 likes · 11 min read
Unlock MySQL’s Secrets: Redo Log, Undo Log, Binlog & Transaction Mechanics
Selected Java Interview Questions
Selected Java Interview Questions
Mar 1, 2022 · Backend Development

Cache Consistency Strategies: From Simple Write‑Through to Binlog Subscription

This article explains why caching is essential for high‑concurrency systems, analyzes the challenges of keeping database and cache data consistent, and compares five practical cache‑invalidation strategies—including write‑after‑DB, delete‑before‑write, delayed double delete, queue‑based deletion, and binlog subscription—highlighting their trade‑offs and suitable scenarios.

BackendBinlogCache
0 likes · 10 min read
Cache Consistency Strategies: From Simple Write‑Through to Binlog Subscription
IT Xianyu
IT Xianyu
Feb 14, 2022 · Databases

MySQL Data Recovery: Backup Strategies, Point‑in‑Time Restoration, Table Recovery, and Flashback Techniques

This article explains how to prevent data loss in MySQL by enabling binlog in ROW format, performing full and incremental restores using mysqldump or XtraBackup, executing point‑in‑time recovery, restoring individual tables, skipping erroneous SQL statements, and using flashback tools such as binlog2sql and MyFlash.

BackupBinlogData Recovery
0 likes · 15 min read
MySQL Data Recovery: Backup Strategies, Point‑in‑Time Restoration, Table Recovery, and Flashback Techniques
IT Architects Alliance
IT Architects Alliance
Feb 14, 2022 · Databases

Ensuring Data Consistency Between MySQL and Redis in High‑Concurrency Scenarios

The article explains why data inconsistency occurs when MySQL and Redis are used together under heavy load, analyzes cache‑delete ordering issues, and presents two practical solutions—delayed double‑delete and asynchronous cache updates via MySQL binlog—along with their trade‑offs and implementation steps.

Async UpdateBinlogCache Consistency
0 likes · 8 min read
Ensuring Data Consistency Between MySQL and Redis in High‑Concurrency Scenarios
MaGe Linux Operations
MaGe Linux Operations
Jan 28, 2022 · Databases

How to Parse MySQL Binlog with Go: Build a Simple Replication Demo

This article demonstrates how to use Go to parse MySQL binlog events and synchronize data by implementing a lightweight replication client, covering configuration, server module, packet handling, handshake, registration, dump command, and providing complete source code examples with explanations.

BinlogGoReplication
0 likes · 16 min read
How to Parse MySQL Binlog with Go: Build a Simple Replication Demo
JavaEdge
JavaEdge
Jan 13, 2022 · Databases

Ensuring Redo Log and Binlog Consistency in InnoDB with Two‑Phase Commit

This article explains how InnoDB’s two‑phase commit mechanism keeps the redo log and binlog logically consistent, illustrating failure scenarios, the impact on data recovery, and how the prepare‑commit split prevents inconsistencies in MySQL’s storage engine.

BinlogInnoDBdatabase-consistency
0 likes · 4 min read
Ensuring Redo Log and Binlog Consistency in InnoDB with Two‑Phase Commit
Code Ape Tech Column
Code Ape Tech Column
Dec 27, 2021 · Backend Development

Incremental Data Synchronization with Alibaba Canal and RabbitMQ

This article explains how to use Alibaba's open‑source Canal middleware to capture MySQL binlog changes and forward them via RabbitMQ for real‑time data synchronization, covering server installation, configuration, testing, and a Java client implementation.

BackendBinlogCanal
0 likes · 11 min read
Incremental Data Synchronization with Alibaba Canal and RabbitMQ
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 23, 2021 · Databases

Common MySQL binlog Commands and Usage Tips

This article provides a practical guide to using mysqlbinlog for parsing and replaying MySQL binlog files, covering options for time, position, and GTID ranges, as well as important parameters such as --no-defaults, -v, --base64-output, and --skip-gtids.

BinlogGTIDmysql
0 likes · 7 min read
Common MySQL binlog Commands and Usage Tips
HomeTech
HomeTech
Dec 14, 2021 · Databases

TiDB Cross-Data-Center High Availability Using Binlog Bidirectional Replication

This article summarizes the design, working principle, deployment steps, testing results, and future outlook of a TiDB cross-data-center high‑availability solution based on Binlog bidirectional replication, aiming to ensure rapid failover and continuous service between two data‑center clusters.

Bidirectional ReplicationBinlogCross‑Data‑Center
0 likes · 5 min read
TiDB Cross-Data-Center High Availability Using Binlog Bidirectional Replication
Su San Talks Tech
Su San Talks Tech
Oct 13, 2021 · Databases

How to Recover Accidentally Deleted MySQL Data Using Binlog

After a client mistakenly imported 60,000 useless rows and a developer’s faulty delete command erased over 100,000 critical records, this guide explains how to use MySQL binlog to locate, extract, and replay the missing SQL statements, restore the data, and prevent future disasters.

BackupBinlogData Recovery
0 likes · 17 min read
How to Recover Accidentally Deleted MySQL Data Using Binlog
Java Captain
Java Captain
Oct 2, 2021 · Databases

MySQL Binlog Data Recovery After Accidental Bulk Deletion: Case Study and Best Practices

This article recounts a real-world incident where a client mistakenly imported 60,000 rows of erroneous Excel data into a MySQL production database, leading to an accidental bulk delete, and explains how the team used MySQL binlog to recover the lost data while offering practical safeguards to prevent similar disasters.

BinlogData RecoveryDatabase Backup
0 likes · 17 min read
MySQL Binlog Data Recovery After Accidental Bulk Deletion: Case Study and Best Practices
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.

BinlogDatabase Loggingmysql
0 likes · 10 min read
Understanding MySQL Binlog, Redo Log, and Undo Log: How They Ensure Data Consistency
Tencent Database Technology
Tencent Database Technology
Sep 14, 2021 · Databases

Writeset‑Based Replication in MySQL: Background, Principles, Source‑Code Analysis, Testing, and Summary

This article explains how MySQL’s logical‑clock replication can be enhanced with writeset‑based dependency tracking, detailing the underlying theory, code implementation, configuration options, performance testing, and practical considerations for improving parallel applier concurrency.

BinlogReplicationTransaction Dependency
0 likes · 12 min read
Writeset‑Based Replication in MySQL: Background, Principles, Source‑Code Analysis, Testing, and Summary
Tencent Qidian Tech Team
Tencent Qidian Tech Team
Sep 9, 2021 · Databases

How MySync Achieves Real-Time MySQL Binlog Synchronization Across Heterogeneous Stores

This article explains the design and implementation of MySync, a component that leverages MySQL binlog to synchronously replicate data to heterogeneous storage systems such as Redis, ElasticSearch, and HBase, detailing its architecture, reader and writer modules, Kafka integration, and strategies for handling master‑slave failover.

BinlogDistributed SystemsReal-Time
0 likes · 15 min read
How MySync Achieves Real-Time MySQL Binlog Synchronization Across Heterogeneous Stores
ITPUB
ITPUB
Aug 5, 2021 · Databases

How PolarDB‑X’s SQL Flashback Restores Accidentally Deleted Rows in Seconds

This article explains how PolarDB‑X classifies different data‑deletion scenarios, compares traditional recovery methods like PITR, Flashback Query, and binlog‑based tools, and introduces its precise SQL‑level flashback feature that uses TraceID to quickly and accurately restore mistakenly deleted rows.

BinlogData RecoveryFlashback
0 likes · 13 min read
How PolarDB‑X’s SQL Flashback Restores Accidentally Deleted Rows in Seconds
Top Architect
Top Architect
Jul 29, 2021 · Databases

Understanding Canal, Maxwell, Databus, and Alibaba DTS for Incremental Data Capture

This article explains how Canal, Maxwell, Databus, and Alibaba's Data Transmission Service (DTS) enable incremental data subscription and consumption by parsing MySQL binlog streams, describing their architectures, processing steps, and comparative advantages for building reliable change‑data‑capture pipelines.

Alibaba DTSBinlogCanal
0 likes · 6 min read
Understanding Canal, Maxwell, Databus, and Alibaba DTS for Incremental Data Capture
Efficient Ops
Efficient Ops
Jul 27, 2021 · Databases

Mastering Tencent Cloud MySQL: Instance Types, Replication, HA & Upgrades

This guide explains Tencent Cloud MySQL's three instance types, detailed replication modes (asynchronous, semi‑synchronous, strong synchronous), high‑availability failover mechanisms, upgrade procedures, binlog management, restore options, slow‑query tuning, and space fragmentation, providing practical insights for reliable cloud database operations.

BinlogInstance UpgradeReplication
0 likes · 11 min read
Mastering Tencent Cloud MySQL: Instance Types, Replication, HA & Upgrades
Laravel Tech Community
Laravel Tech Community
Jun 29, 2021 · Databases

MySQL Data Recovery: Backup, Binlog, Point‑in‑Time Recovery and Tools

This article explains how to prevent data loss in MySQL by enabling backups and row‑based binlog, then details full‑volume recovery with mysqldump or xtrabackup, point‑in‑time restoration using binlog, table‑level recovery, skipping erroneous SQL statements, and introduces open‑source tools such as binlog2sql and MyFlash.

BackupBinlogMyFlash
0 likes · 15 min read
MySQL Data Recovery: Backup, Binlog, Point‑in‑Time Recovery and Tools
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 15, 2021 · Databases

How to Enable Binlog Compression in MySQL

This article explains why MySQL binlog files can become large, demonstrates how to enable the slave_compressed_protocol parameter for binlog compression, presents benchmark results showing reduced network traffic and CPU impact, and outlines compatibility considerations and known bugs.

Binlogcompressionmysql
0 likes · 5 min read
How to Enable Binlog Compression in MySQL
Laravel Tech Community
Laravel Tech Community
Mar 27, 2021 · Databases

Using MySQL Binlog for Data Recovery and Rollback

This guide explains how to verify that MySQL binlog is enabled, locate binlog files, use the mysqlbinlog utility to extract change logs for specific time ranges or tables, and apply the extracted SQL to recover or roll back erroneous data modifications.

BinlogData RecoverySQL
0 likes · 5 min read
Using MySQL Binlog for Data Recovery and Rollback
Kuaishou Tech
Kuaishou Tech
Mar 25, 2021 · Backend Development

Designing a High‑Availability Cache Consistency Solution for the Creator Red Packet System

This article explains how the creator red‑packet feature was engineered to guarantee idempotent, fault‑tolerant, and high‑throughput red‑packet claims by using multi‑level caching, empty placeholders, binlog‑driven synchronization, active cache invalidation, ordered Kafka consumption, and fallback strategies to resolve cache‑DB consistency issues.

BinlogCache ConsistencyIdempotency
0 likes · 11 min read
Designing a High‑Availability Cache Consistency Solution for the Creator Red Packet System
Architecture Digest
Architecture Digest
Mar 18, 2021 · Databases

Two Approaches to Synchronize MySQL Data with Redis Cache: Trigger + UDF and Binlog Parsing (Canal)

The article explains two technical methods for keeping MySQL and Redis in sync—using MySQL triggers with a custom UDF to write directly to Redis, and parsing MySQL binlog streams (or using Alibaba's Canal) to propagate changes, while discussing their suitable scenarios, challenges, and implementation details.

BinlogCanalDatabase Replication
0 likes · 5 min read
Two Approaches to Synchronize MySQL Data with Redis Cache: Trigger + UDF and Binlog Parsing (Canal)
ITPUB
ITPUB
Mar 12, 2021 · Backend Development

How to Sync MySQL Data to Elasticsearch in Real-Time Using Binlog and Kafka

This article explains how a growing e‑commerce platform replaced a heavyweight MySQL intermediate table with a binlog‑driven pipeline that streams changes to Elasticsearch via Kafka, detailing the architecture, modules, customizations, monitoring, and performance results.

BackendBinlogElasticsearch
0 likes · 13 min read
How to Sync MySQL Data to Elasticsearch in Real-Time Using Binlog and Kafka
Big Data Technology & Architecture
Big Data Technology & Architecture
Jan 12, 2021 · Backend Development

go-mysql-transfer: A Go-Based Real-Time MySQL Binlog Incremental Sync Tool

The article introduces go-mysql-transfer, a Go-implemented MySQL binlog incremental synchronization solution that avoids extra components, supports multiple downstreams like Redis, offers Lua scripting, Prometheus monitoring, high‑availability clustering, retry mechanisms, full data initialization, and provides installation, deployment, and performance testing details.

BinlogGoPrometheus
0 likes · 12 min read
go-mysql-transfer: A Go-Based Real-Time MySQL Binlog Incremental Sync Tool
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 5, 2021 · Databases

Using my2sql: A Go‑Based Binlog Parsing Tool for Flashback, Forwarding, and Transaction Analysis

The article introduces my2sql, a Go‑written MySQL binlog parser that supports flashback, forward SQL generation, and transaction analysis, compares it with binlog2sql and MyFlash, details its command‑line parameters, demonstrates three practical scenarios, lists limitations, and summarizes its performance and usage advantages.

BinlogGoTransaction Analysis
0 likes · 33 min read
Using my2sql: A Go‑Based Binlog Parsing Tool for Flashback, Forwarding, and Transaction Analysis
Practical DevOps Architecture
Practical DevOps Architecture
Dec 28, 2020 · Databases

MySQL Binlog Configuration and Usage Guide

This guide explains how to enable and configure MySQL binary logging, examine its parameters, understand event formats, view and filter binlog contents, and extract logs using positions, timestamps, or GTIDs for backup, replication, and troubleshooting purposes.

BinlogGTIDmysql
0 likes · 6 min read
MySQL Binlog Configuration and Usage Guide
System Architect Go
System Architect Go
Dec 20, 2020 · Databases

Understanding the MySQL Client/Server Protocol: Connection and Replication

This article explains the MySQL client‑server communication protocol, detailing the connection phase—including handshake, authentication, and packet structure—as well as the replication process, covering registration as a slave, binlog streaming, and the various binlog event types and their formats.

BinlogClient-Server ProtocolHandshake
0 likes · 12 min read
Understanding the MySQL Client/Server Protocol: Connection and Replication
ITPUB
ITPUB
Dec 4, 2020 · Databases

Mastering MySQL Binlog, Undo Log, Redo Log, and ChangeBuffer

This comprehensive guide explains MySQL's binary log, undo log, redo log, and ChangeBuffer, covering their concepts, purposes, recording formats, flush timing, recovery processes, and how they interact during transactions and crash‑safe recovery.

BinlogChangeBufferDatabaseRecovery
0 likes · 21 min read
Mastering MySQL Binlog, Undo Log, Redo Log, and ChangeBuffer
System Architect Go
System Architect Go
Nov 30, 2020 · Databases

Five Ways to Sync MySQL Data to Elasticsearch, Redis, MQ, etc.

This article outlines five practical methods for synchronizing MySQL data to external systems such as Elasticsearch, Redis, and message queues, covering business‑layer hooks, middleware integration, scheduled tasks using updated_at, binlog parsing with ROW format, and handling mixed or statement binlog formats, plus open‑source tools.

BinlogElasticsearchKafka
0 likes · 5 min read
Five Ways to Sync MySQL Data to Elasticsearch, Redis, MQ, etc.
ITPUB
ITPUB
Nov 5, 2020 · Databases

Why Does MySQL 5.7 Throw Duplicate‑Key Errors After an Auto‑Increment Upgrade?

After upgrading a critical MySQL 5.6 table to 5.7, the system began reporting duplicate‑key errors on master, replica and read‑only instances due to unexpected changes in the AUTO_INCREMENT value, prompting a deep kernel investigation, bug analysis, on‑site reproduction, and practical mitigation steps.

BinlogDuplicate KeyInnoDB
0 likes · 12 min read
Why Does MySQL 5.7 Throw Duplicate‑Key Errors After an Auto‑Increment Upgrade?
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 4, 2020 · Databases

Differences Between SELECT and UPDATE Execution in MySQL: Process, Optimizer, Redo Log and Binlog

The article explains how MySQL processes SELECT and UPDATE statements, detailing each execution stage—from client authentication and cache lookup to parsing, optimization, and execution—while highlighting the additional redo log and binlog handling required for UPDATE operations and offering practical code examples.

BinlogDatabase OptimizationSQL Execution
0 likes · 14 min read
Differences Between SELECT and UPDATE Execution in MySQL: Process, Optimizer, Redo Log and Binlog
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 26, 2020 · Databases

Understanding MySQL Binlog, Undo Log, Redo Log, and Change Buffer

This article provides a comprehensive overview of MySQL’s logging mechanisms—including Binlog, Undo log, Redo log, and Change Buffer—explaining their concepts, roles in replication and crash‑recovery, recording formats, flush timing, two‑phase commit, checkpoint handling, and how they interact during data modifications.

BinlogChange BufferDatabase Internals
0 likes · 22 min read
Understanding MySQL Binlog, Undo Log, Redo Log, and Change Buffer
Programmer DD
Programmer DD
Oct 14, 2020 · Databases

Master MySQL Binlog, Redo Log, and Undo Log: Complete Guide

This article explains MySQL’s essential logging mechanisms—binlog, redo log, and undo log—covering their purposes, formats, configuration parameters, flushing strategies, and roles in replication, recovery, and transaction atomicity, while comparing their differences and illustrating concepts with diagrams.

BinlogDatabase LoggingInnoDB
0 likes · 11 min read
Master MySQL Binlog, Redo Log, and Undo Log: Complete Guide
ITPUB
ITPUB
Sep 8, 2020 · Databases

Understanding MySQL Binlog, Redo Log, and Undo Log: Ensuring Data Consistency

This article explains the three core MySQL logs—binlog, redo log, and undo log—their structures, formats, configuration parameters, and how they work together to provide replication, crash recovery, and transactional atomicity while balancing performance and consistency.

BinlogDatabase ReplicationTransaction Log
0 likes · 11 min read
Understanding MySQL Binlog, Redo Log, and Undo Log: Ensuring Data Consistency