Tag

MySQL

1 views collected around this technical thread.

IT Xianyu
IT Xianyu
Jun 12, 2025 · Databases

Why Mastering MySQL Slow Query Log Is Essential for Performance

This guide explains what the MySQL slow query log is, why it matters for performance, how to check its status, enable it temporarily or permanently in Docker‑based deployments, troubleshoot command‑not‑found errors, read the log file, and filter entries to focus on the truly slow queries.

Database PerformanceDockerMySQL
0 likes · 6 min read
Why Mastering MySQL Slow Query Log Is Essential for Performance
Sohu Tech Products
Sohu Tech Products
Jun 11, 2025 · Databases

Unlocking MySQL InnoDB: Deep Dive into Tablespaces, Undo Logs, and Indexes

This article explains MySQL InnoDB's dual memory and on‑disk architecture, detailing the various tablespace types (system, file‑per‑table, general, undo, temporary), their internal structures (segments, extents, pages), configuration tips, and how tables, row formats, primary keys, auto‑increment lock modes, and B+Tree indexes are organized and managed.

Database ArchitectureIndexesInnoDB
0 likes · 18 min read
Unlocking MySQL InnoDB: Deep Dive into Tablespaces, Undo Logs, and Indexes
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 11, 2025 · Databases

Why Does Adding a Column Trigger Duplicate Entry Errors in MySQL?

An experienced DBA explains why adding a new column in MySQL can unexpectedly raise duplicate entry errors during online DDL, detailing the role of primary and unique keys, the innodb_online_alter_log_max_size setting, and how concurrent DML operations cause the conflict.

DDLMySQLdatabase
0 likes · 8 min read
Why Does Adding a Column Trigger Duplicate Entry Errors in MySQL?
IT Xianyu
IT Xianyu
Jun 11, 2025 · Databases

Master MySQL Replication: Fix Common Errors and Resolve ‘command not found’ Issues

Learn step‑by‑step how to troubleshoot MySQL master‑slave replication problems, from verifying component roles and executing the correct SHOW SLAVE STATUS command inside the MySQL client, to fixing missing command errors, checking IO/SQL threads, and restarting replication in Docker‑based environments.

DockerLinuxMySQL
0 likes · 6 min read
Master MySQL Replication: Fix Common Errors and Resolve ‘command not found’ Issues
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 11, 2025 · Databases

Understanding MySQL Transaction Isolation Levels with Real‑World Examples

This article explains MySQL's four transaction isolation levels—READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, and SERIALIZABLE—through step‑by‑step examples, demonstrating their effects on dirty reads, non‑repeatable reads, phantom reads, and performance considerations, helping developers choose the appropriate level.

Database ConcurrencyInnoDBMySQL
0 likes · 10 min read
Understanding MySQL Transaction Isolation Levels with Real‑World Examples
Java Captain
Java Captain
Jun 10, 2025 · Databases

Master MySQL Performance: Slow Queries, Indexes, Transactions & Replication

This article explains how to locate and analyze MySQL slow queries, understand index structures and types, apply best practices for index creation, handle large pagination, manage transaction isolation and MVCC, and implement master‑slave replication and sharding strategies for high‑performance databases.

Index OptimizationMySQLReplication
0 likes · 13 min read
Master MySQL Performance: Slow Queries, Indexes, Transactions & Replication
Java Tech Enthusiast
Java Tech Enthusiast
Jun 8, 2025 · Databases

Why DELETE Is Discouraged in MySQL and When to Use DROP or TRUNCATE

This article explains MySQL's storage architecture, compares the DELETE, TRUNCATE, and DROP commands, shows their performance and side‑effects, and provides practical guidance on choosing the safest and most efficient way to remove data from a MySQL table.

DELETEDROPDatabase Storage
0 likes · 9 min read
Why DELETE Is Discouraged in MySQL and When to Use DROP or TRUNCATE
Java Tech Enthusiast
Java Tech Enthusiast
Jun 7, 2025 · Databases

How to Optimize Multi-Table Joins in MySQL: Practical Strategies

This article explains why excessive MySQL joins can cause performance problems and provides a comprehensive set of techniques—including query splitting, temporary tables, denormalization, index tuning, query rewriting, result‑set reduction, configuration tweaks, big‑data tools, and summary tables—to effectively optimize multi‑table join queries.

Database PerformanceJoin OptimizationMySQL
0 likes · 10 min read
How to Optimize Multi-Table Joins in MySQL: Practical Strategies
Cognitive Technology Team
Cognitive Technology Team
Jun 7, 2025 · Databases

Mastering MySQL Locks: Types, Mechanisms, and Best Practices

This article explains MySQL’s locking mechanisms, categorizing locks by performance, operation type, data granularity, and finer‑grained levels such as gap and next‑key locks, and offers guidance on selecting the appropriate lock strategy for reliable concurrent database operations.

Concurrency ControlInnoDBMySQL
0 likes · 9 min read
Mastering MySQL Locks: Types, Mechanisms, and Best Practices
Architect's Tech Stack
Architect's Tech Stack
Jun 6, 2025 · Databases

Master MySQL Full-Text Search: Inverted Indexes, Queries, and Best Practices

This article explains how MySQL's InnoDB engine implements full‑text search using inverted indexes, shows how to create and use full‑text indexes with various query modes, demonstrates Boolean operators and query expansion, and covers index removal techniques.

Full-Text SearchInverted IndexMySQL
0 likes · 12 min read
Master MySQL Full-Text Search: Inverted Indexes, Queries, and Best Practices
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 5, 2025 · Databases

How MySQL Connection Control Plugins Can Cause Connection Pile‑up and How to Fix It

This article explains the MySQL Connection Control Plugins introduced in 5.7.17, how improper configuration can lead to connection backlog and database hangs, and provides step‑by‑step installation, parameter tuning, testing procedures, and mitigation strategies to resolve the issue.

Connection ControlDatabase PerformanceMySQL
0 likes · 9 min read
How MySQL Connection Control Plugins Can Cause Connection Pile‑up and How to Fix It
IT Xianyu
IT Xianyu
Jun 5, 2025 · Operations

Diagnose MySQL Slow Queries on AlmaLinux: One‑Click Shell Monitoring Scripts

Learn how to quickly pinpoint MySQL performance bottlenecks on AlmaLinux by using built‑in tools like top, iotop, ss, and netstat, and automate snapshot collection with a simple Bash script that records system and container metrics for later analysis.

AlmaLinuxDockerMySQL
0 likes · 20 min read
Diagnose MySQL Slow Queries on AlmaLinux: One‑Click Shell Monitoring Scripts
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 4, 2025 · Databases

Using Cgroups for MySQL Resource Isolation: CPU, Memory, IO, and Network Limits

This article presents a comprehensive guide on applying Linux Cgroups to isolate MySQL resources, covering CPU, memory, I/O, and network bandwidth controls, detailed configuration steps, performance testing with sysbench, and practical observations to ensure stable and predictable database behavior.

LinuxMySQLPerformance Tuning
0 likes · 47 min read
Using Cgroups for MySQL Resource Isolation: CPU, Memory, IO, and Network Limits
IT Xianyu
IT Xianyu
Jun 4, 2025 · Databases

Comprehensive Guide to Automated MySQL Backup and Restore with Docker

This article provides a step‑by‑step tutorial for DBAs to design a reliable MySQL backup strategy, write a Bash automation script, schedule it with cron, and perform restoration drills using Docker containers, while covering directory planning, command checks, cleanup, and common troubleshooting.

BackupDockerMySQL
0 likes · 17 min read
Comprehensive Guide to Automated MySQL Backup and Restore with Docker
Java Tech Enthusiast
Java Tech Enthusiast
Jun 3, 2025 · Backend Development

Common MySQL Index Failure Scenarios and How to Diagnose Them

This article presents a series of MySQL interview questions and answers that illustrate typical situations where indexes become ineffective—such as leading wildcards in LIKE, NOT IN, NOT EXISTS, functions, inequality operators, OR conditions, mismatched ORDER BY, large result sets, and explains how to analyze execution plans and use FORCE INDEX to improve performance.

MySQLQuery OptimizationSQL
0 likes · 8 min read
Common MySQL Index Failure Scenarios and How to Diagnose Them
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 3, 2025 · Databases

Root Cause Analysis of MySQL 5.7 JSON NOT NULL Rollback Failure and Its Fix

The article details a MySQL 5.7 bug where rollback SQL generated for a JSON NOT NULL column produces an empty string instead of NULL, explains the underlying binlog behavior, reproduces the issue with sample tables, and provides a practical workaround by converting the JSON column to TEXT before re‑importing the data, while recommending strict SQL_MODE for production.

Database TroubleshootingJSONMySQL
0 likes · 7 min read
Root Cause Analysis of MySQL 5.7 JSON NOT NULL Rollback Failure and Its Fix
Architect's Guide
Architect's Guide
Jun 3, 2025 · Backend Development

Open‑Source Multi‑Platform Novel Content Management System Overview

This article introduces an open‑source novel content management system featuring a front‑end portal, writer and platform back‑ends, and a crawler module, detailing its functional modules, Springboot‑based architecture, installation steps, database setup, crawling methods, and access URLs.

CMSMySQLSpringBoot
0 likes · 5 min read
Open‑Source Multi‑Platform Novel Content Management System Overview
Lobster Programming
Lobster Programming
Jun 3, 2025 · Databases

Master MySQL Locks: From Row to Intention Locks Explained with Real Examples

This article explains MySQL InnoDB locking mechanisms—including row, record, gap, next‑key, and intention locks—illustrates each type with SQL statements and performance_schema data, and shows how they interact during concurrent transactions.

InnoDBLocksMySQL
0 likes · 8 min read
Master MySQL Locks: From Row to Intention Locks Explained with Real Examples
Architect
Architect
Jun 1, 2025 · Databases

Dynamic Extension of Fields in Billion‑Row Core Tables: Architecture and Implementation

To avoid lock, page split, and index degradation when adding fields to billion‑row core tables, this article presents a practical solution that uses dynamic field extension via configurable management, JSON‑based extension fields, and an extension‑table architecture integrated with Elasticsearch for storage and retrieval.

ElasticsearchMySQLSchema Design
0 likes · 10 min read
Dynamic Extension of Fields in Billion‑Row Core Tables: Architecture and Implementation