Tag

binary log

0 views collected around this technical thread.

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.

DatabaseMySQLReplace Into
0 likes · 18 min read
Inconsistent AUTO_INCREMENT in MySQL 5.7 Replication Caused by REPLACE INTO
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Mar 1, 2024 · Databases

MySQL Master‑Slave Replication: Modes, Principles, and Implementation

This article explains MySQL master‑slave replication, covering its three modes (asynchronous, semi‑synchronous, and fully synchronous), the underlying binary‑log mechanism, key replication threads, configuration steps, and includes a promotional notice for an upcoming live career‑development session.

MySQLReplicationSemi‑Synchronous
0 likes · 6 min read
MySQL Master‑Slave Replication: Modes, Principles, and Implementation
Aikesheng Open Source Community
Aikesheng Open Source Community
May 31, 2023 · Databases

Deep Dive into MySQL 8.0.33 Two‑Phase Commit: Source‑Code Analysis

This article provides a detailed source‑code walkthrough of MySQL 8.0.33’s two‑phase commit process, explaining the Prepare and Commit stages, internal structures such as binlog queues, GTID generation, redo‑log flushing, sync handling, and the interactions between InnoDB and the binary log.

GTIDInnoDBMySQL
0 likes · 18 min read
Deep Dive into MySQL 8.0.33 Two‑Phase Commit: Source‑Code Analysis
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.

Database ErrorsExport ImportMySQL
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
Tencent Database Technology
Tencent Database Technology
Jan 24, 2022 · Databases

Understanding MySQL GTID: Architecture, Lifecycle, Generation, and Maintenance

This article explains MySQL GTID (Global Transaction Identifier), covering its composition, lifecycle, how GTIDs are generated during commit, the mechanisms that maintain GTID state, and practical examples that illustrate GTID behavior in replication scenarios.

Database InternalsGTIDMySQL
0 likes · 15 min read
Understanding MySQL GTID: Architecture, Lifecycle, Generation, and Maintenance
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.

MySQLPerformance TuningStorage Engine
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.

ConfigurationDatabaseMaster‑Slave
0 likes · 24 min read
MySQL Replication Overview, Configuration, and Common Issues
Practical DevOps Architecture
Practical DevOps Architecture
Jan 7, 2021 · Backend Development

Understanding MySQL Binary Log: Functions, Cleanup Methods, and Switching

This article explains the role of MySQL binary logs for replication and point‑in‑time recovery, outlines four practical cleanup techniques—including reset master and purge commands—and demonstrates how to switch logs using flush operations while showing relevant command outputs and screenshots.

BackupLog CleanupMySQL
0 likes · 5 min read
Understanding MySQL Binary Log: Functions, Cleanup Methods, and Switching
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.

DatabaseMaster‑SlaveMySQL
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.

MySQLReplicationbinary log
0 likes · 11 min read
Understanding MySQL Log Files: Redo Log, Undo Log, and Binary Log
Selected Java Interview Questions
Selected Java Interview Questions
Jul 21, 2020 · Databases

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

This article explains the three most important MySQL log types—redo log, undo log, and binary log—detailing their purposes, contents, creation and release timing, related configuration parameters, physical files, and how they interact with transaction processing and replication.

InnoDBMySQLbinary log
0 likes · 11 min read
Understanding MySQL Log Types: Redo Log, Undo Log, and Binary Log
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.

MySQLPerformanceSQL
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
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 toolsMySQLOnline Schema Change
0 likes · 17 min read
Using gh-ost for Online MySQL Schema Changes: Features, Modes, and Practical Tips