Tagged articles
39 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Apr 15, 2026 · Databases

Why MySQL Binary Logs Fill Up Disk Space and How to Fix It

This article explains how MySQL binary logs can rapidly consume disk space, analyzes the root causes such as log format and workload, provides step‑by‑step diagnostics, and offers practical cleanup, configuration, replication, monitoring, and recovery strategies to prevent and resolve the issue.

BackupReplicationbinary log
0 likes · 21 min read
Why MySQL Binary Logs Fill Up Disk Space and How to Fix It
Architect Chen
Architect Chen
Jan 26, 2026 · Databases

Mastering MySQL Master‑Slave Replication: Architecture, Threads, and Setup

This article explains MySQL master‑slave replication, covering its purpose for high availability and read‑write separation, typical one‑master‑multiple‑slaves architecture, the binlog‑based synchronization mechanism, and the roles of the master’s dump thread and the slave’s I/O and SQL threads.

Database Architecturebinary loghigh availability
0 likes · 3 min read
Mastering MySQL Master‑Slave Replication: Architecture, Threads, and Setup
Raymond Ops
Raymond Ops
Aug 14, 2025 · Databases

Master MySQL Log Management: Error, General, Binlog & Slow Query Tips

This guide explains MySQL logging types—including error, general, binary, and slow query logs—their default settings, how to enable or modify them, how to view and interpret log contents, and practical commands for backup, recovery, and cleanup.

Database AdministrationLog Managementbinary log
0 likes · 11 min read
Master MySQL Log Management: Error, General, Binlog & Slow Query Tips
MaGe Linux Operations
MaGe Linux Operations
Jan 29, 2025 · Databases

Master MySQL Log Management: From Error to Slow Query Logs

This guide explains MySQL’s error, general, binary, and slow query logs, covering default settings, how to enable or modify them, binary log formats and recovery procedures, as well as tools for analyzing slow queries, providing a comprehensive reference for database administrators.

Database AdministrationLog ManagementSQL
0 likes · 11 min read
Master MySQL Log Management: From Error to Slow Query Logs
vivo Internet Technology
vivo Internet Technology
Apr 3, 2024 · Databases

Inconsistent AUTO_INCREMENT in MySQL 5.7 Replication Caused by REPLACE INTO

In MySQL 5.7, using REPLACE INTO on a table that has an auto‑increment primary key and an extra unique index can cause the master and slave AUTO_INCREMENT counters to diverge, leading to duplicate‑key errors after failover, a bug mitigated by upgrading to MySQL 8.0, manual counter fixes, or avoiding REPLACE INTO.

REPLACE INTOauto_incrementbinary log
0 likes · 18 min read
Inconsistent AUTO_INCREMENT in MySQL 5.7 Replication Caused by REPLACE INTO
ITPUB
ITPUB
Mar 26, 2023 · Databases

Why a Missing mysql-bin.index Crashed MySQL HA and How to Recover It

A detailed post‑mortem of a MySQL dual‑master cluster failure caused by a missing mysql-bin.index file, showing step‑by‑step diagnostics, container logs, replication position fixes, and preventive measures for high‑availability deployments.

Replicationbinary logkeepalived
0 likes · 8 min read
Why a Missing mysql-bin.index Crashed MySQL HA and How to Recover It
Java High-Performance Architecture
Java High-Performance Architecture
May 19, 2022 · Databases

Mastering MySQL Replication: From Basics to Advanced Configurations

This article explains MySQL replication fundamentals, binary log mechanics, master‑slave roles, configuration steps, and the various replication types—including asynchronous, semi‑synchronous, multi‑source, and delayed replication—while providing practical commands and code examples for reliable high‑availability setups.

Delayed ReplicationReplicationSemi‑Sync
0 likes · 14 min read
Mastering MySQL Replication: From Basics to Advanced Configurations
Laravel Tech Community
Laravel Tech Community
Apr 27, 2022 · Databases

Common MySQL Errors and Their Solutions: Password Reset, Case Sensitivity, Service Startup, Export/Import, Connection Limits, Binlog Management, and Replication Issues

This article compiles eight classic MySQL error scenarios—including forgotten passwords, case‑sensitivity mismatches, Windows service startup failures, export/import restrictions, excessive connections, full binary logs, and primary‑key replication conflicts—along with detailed troubleshooting steps, configuration tweaks, and command‑line solutions to help database practitioners resolve them efficiently.

Case SensitivityDatabase ErrorsExport Import
0 likes · 10 min read
Common MySQL Errors and Their Solutions: Password Reset, Case Sensitivity, Service Startup, Export/Import, Connection Limits, Binlog Management, and Replication Issues
Tencent Database Technology
Tencent Database Technology
Feb 22, 2022 · Databases

Analysis of Relay Log Recovery and Crash Safety in MySQL GTID‑Based and Binary‑Log‑File‑Position Replication

This article examines how MySQL slaves recover their replication state in GTID‑based and binary‑log‑file‑position scenarios, identifies unsafe factors that can cause crash‑unsafe behavior, and explains how enabling relay_log_recovery=on mitigates these risks while outlining remaining limitations.

Crash SafetyGTIDMTS
0 likes · 14 min read
Analysis of Relay Log Recovery and Crash Safety in MySQL GTID‑Based and Binary‑Log‑File‑Position Replication
macrozheng
macrozheng
Jan 29, 2021 · Databases

Understanding MySQL’s Logical Architecture and Its Crucial Logs

This article explains MySQL's three‑layer logical architecture, the roles of redo, undo, and binary logs, how they interact with the buffer pool and crash recovery, and provides practical commands for managing slow query, general, and error logs.

Database LogsStorage Enginebinary log
0 likes · 18 min read
Understanding MySQL’s Logical Architecture and Its Crucial Logs
Architecture Digest
Architecture Digest
Jan 9, 2021 · Databases

MySQL Replication Overview, Configuration, and Common Issues

This article explains MySQL's built‑in replication mechanism, covering its purpose, supported replication formats, step‑by‑step master‑slave configuration, common topologies, troubleshooting techniques, and practical SQL commands for setting up and maintaining reliable data distribution and high availability.

ConfigurationMaster‑SlaveReplication
0 likes · 24 min read
MySQL Replication Overview, Configuration, and Common Issues
Liangxu Linux
Liangxu Linux
Jan 4, 2021 · Databases

Mastering MySQL Replication: Types, Setup, and Troubleshooting Guide

This article provides a comprehensive guide to MySQL replication, covering built‑in replication types, the three‑step replication workflow, detailed master‑slave configuration commands, topology options, cloning methods, binlog formats, replication files, filtering, and common error scenarios with solutions.

Master‑Slavebinary logdatabase
0 likes · 28 min read
Mastering MySQL Replication: Types, Setup, and Troubleshooting Guide
Efficient Ops
Efficient Ops
Sep 22, 2020 · Databases

Mastering MySQL Master‑Slave Replication: A Step‑by‑Step Guide

This article explains what MySQL master‑slave replication is, outlines its benefits, details the underlying mechanisms and event types, and provides a comprehensive, command‑line tutorial for configuring both master and slave servers, complete with code snippets and illustrative diagrams.

Master‑SlaveReplicationTutorial
0 likes · 9 min read
Mastering MySQL Master‑Slave Replication: A Step‑by‑Step Guide
IT Xianyu
IT Xianyu
Sep 15, 2020 · Databases

Understanding MySQL Log Files: Redo Log, Undo Log, and Binary Log

This article explains MySQL’s six log files, focusing on the redo log, undo log, and binary log, detailing their purposes, contents, generation and release timing, associated physical files, configuration parameters, and their roles in transaction durability and replication.

Replicationbinary loglog
0 likes · 11 min read
Understanding MySQL Log Files: Redo Log, Undo Log, and Binary Log
Open Source Linux
Open Source Linux
Sep 2, 2020 · Databases

Recover MySQL After Accidental Drop Using LVM Snapshots and Binlog

This guide demonstrates a complete MySQL disaster‑recovery workflow that combines LVM snapshot technology with binary‑log point‑in‑time recovery, allowing you to restore a dropped database by creating a snapshot, extracting it, and replaying binlog events up to the failure moment.

LVMbinary logmysql
0 likes · 7 min read
Recover MySQL After Accidental Drop Using LVM Snapshots and Binlog
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 12, 2019 · Databases

Analyzing MySQL Binary Log Events with the infobin Tool

This article introduces the open‑source infobin utility for parsing MySQL binary logs, explains how it detects long‑running and large transactions, measures event generation speed, aggregates per‑table DML events, and demonstrates its usage with sample commands and output, offering a faster alternative to mysqlbinlog.

SQLbinary logdatabase analysis
0 likes · 11 min read
Analyzing MySQL Binary Log Events with the infobin Tool
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 1, 2018 · Databases

How to Set Up MySQL Master‑Slave Replication

This guide explains the complete process of configuring MySQL master‑slave replication on two CentOS machines, covering prerequisite setup, enabling binary logging, creating a replication user, capturing binlog coordinates, configuring the slave, and verifying successful synchronization.

CentOSDatabase ConfigurationMaster‑Slave
0 likes · 5 min read
How to Set Up MySQL Master‑Slave Replication
Java Backend Technology
Java Backend Technology
Jun 12, 2018 · Databases

Understanding MySQL Redo, Undo, and Binary Logs: A Practical Guide

This article explains the purpose, content, generation timing, storage files, and release mechanisms of MySQL's redo log, undo log, and binary log, highlighting their roles in transaction durability, MVCC, and replication, and clarifying key differences and interactions among them.

Database Loggingbinary logmysql
0 likes · 12 min read
Understanding MySQL Redo, Undo, and Binary Logs: A Practical Guide
Tencent Cloud Developer
Tencent Cloud Developer
Mar 23, 2018 · Databases

Using gh-ost for Online MySQL Schema Changes: Features, Modes, and Practical Tips

gh‑ost is a lightweight, trigger‑free, Go‑based online MySQL schema‑change tool that reads binary logs, applies alterations to temporary tables, and offers pauseable, auditable, and dynamically controllable migrations via socket commands, supporting master‑only, replica‑assisted, or replica‑testing modes and used extensively at GitHub.

DBA toolsOnline Schema Changebinary log
0 likes · 17 min read
Using gh-ost for Online MySQL Schema Changes: Features, Modes, and Practical Tips
ITPUB
ITPUB
Sep 30, 2017 · Databases

Recovering Deleted MySQL User Data from Binary Logs

When a sales employee's workflow records vanished after a WeChat ID change, the team traced the deletion to MySQL binary logs, extracted the relevant log entries, and used bulk UPDATE statements to replace the old user_id with the new one, fully restoring the missing data.

Data RecoveryDatabase AdministrationSQL
0 likes · 5 min read
Recovering Deleted MySQL User Data from Binary Logs
dbaplus Community
dbaplus Community
Jun 12, 2017 · Databases

How to Diagnose and Fix MySQL Replication Errors in UDB

This guide explains how to collect replication status, analyze MySQL error logs and binary logs, compare master and slave configurations, and troubleshoot common replication failures such as GTID mismatches, missing binlogs, and conflicting statements in UDB environments.

GTIDReplicationUDB
0 likes · 20 min read
How to Diagnose and Fix MySQL Replication Errors in UDB
ITPUB
ITPUB
Jul 11, 2016 · Databases

Why Does MySQL Replication Throw ER_MASTER_HAS_PURGED_REQUIRED_GTIDS and How to Fix It?

In a MySQL 5.7 GTID setup with dual masters, a network glitch caused the slave to switch masters, leading to the ER_MASTER_HAS_PURGED_REQUIRED_GTIDS error because the new master had purged GTIDs the slave still needed, and the article explains the root cause and step‑by‑step fix.

ER_MASTER_HAS_PURGED_REQUIRED_GTIDSGTIDReplication
0 likes · 6 min read
Why Does MySQL Replication Throw ER_MASTER_HAS_PURGED_REQUIRED_GTIDS and How to Fix It?
dbaplus Community
dbaplus Community
Jun 1, 2016 · Databases

Unlocking MySQL Replication: What, Why, and How Explained

This article uses the Golden Circle framework to explore MySQL replication, detailing its definition, benefits such as scaling and fault tolerance, the underlying mechanisms involving binary logs and IO/SQL threads, and addressing common practical questions through a self‑Q&A format.

Read-Write SeparationReplicationbinary log
0 likes · 13 min read
Unlocking MySQL Replication: What, Why, and How Explained
ITPUB
ITPUB
Mar 31, 2016 · Databases

Master MySQL Replication: Step‑by‑Step Guide to Master‑Slave Setup

This article explains MySQL replication fundamentals, compares asynchronous and synchronous modes, walks through configuring a master‑slave environment with binary logs, details statement‑based and row‑based replication, offers recommended settings, and discusses replication lag, semi‑synchronous replication, and heartbeat mechanisms.

AsynchronousConfigurationMaster‑Slave
0 likes · 15 min read
Master MySQL Replication: Step‑by‑Step Guide to Master‑Slave Setup
21CTO
21CTO
Sep 20, 2015 · Databases

Master MySQL Backup & Recovery: Mysqldump, LVM Snapshots, and Xtrabackup Explained

This tutorial walks through three MySQL backup and recovery strategies—using mysqldump with binary logs, LVM snapshots with binary logs, and Percona Xtrabackup—detailing environment setup, command syntax, incremental procedures, and restoration steps to ensure data safety and minimal downtime.

BackupLVMRecovery
0 likes · 21 min read
Master MySQL Backup & Recovery: Mysqldump, LVM Snapshots, and Xtrabackup Explained