Tagged articles

MySQL

5000 articles · Page 10 of 50
macrozheng
macrozheng
Jul 4, 2025 · Databases

How Many Rows Can a MySQL Table Really Hold? A Deep Dive into B+ Tree Limits

This article consolidates theory and practical calculations to reveal how MySQL's B+‑tree storage, page structure, and row size determine the realistic maximum number of records a single table can store, ranging from millions to billions depending on schema choices.

B+ TreeDatabase LimitsIndex Calculation
0 likes · 11 min read
How Many Rows Can a MySQL Table Really Hold? A Deep Dive into B+ Tree Limits
Java Backend Full-Stack
Java Backend Full-Stack
Jul 3, 2025 · Interview Experience

Why the Second Question in My SF Interview Made Me Walk Away

The article shares a detailed SF interview experience, covering typical Java interview questions such as self‑introduction, challenging projects, learning paths, abstract class vs interface, HashMap vs Hashtable, insertion steps, red‑black and B+ trees, MySQL and Redis indexing choices, large‑table optimization, JVM memory model, and the purpose of the Survivor space.

Data StructuresHashMapJVM
0 likes · 23 min read
Why the Second Question in My SF Interview Made Me Walk Away
Su San Talks Tech
Su San Talks Tech
Jul 3, 2025 · Databases

Mastering MySQL Sharding: Strategies for 1 Billion Orders

This article explores the pain points of a 700‑million‑row MySQL order table, presents vertical and horizontal sharding strategies, introduces gene‑based Snowflake IDs, details routing logic, migration steps, common pitfalls, and shows performance gains after applying the final architecture.

Database ScalingMySQLPerformance Optimization
0 likes · 9 min read
Mastering MySQL Sharding: Strategies for 1 Billion Orders
Java Tech Enthusiast
Java Tech Enthusiast
Jul 2, 2025 · Databases

Why MySQL GROUP BY Can Be Slow and How to Optimize It

This article explains why MySQL GROUP BY queries may run slowly, analyzes the execution plan showing temporary tables and filesort, and provides practical optimization techniques such as removing unnecessary sorting, adding indexes, adjusting buffer settings, and considering application‑level or materialized view solutions.

GROUP BYMySQLPerformance
0 likes · 4 min read
Why MySQL GROUP BY Can Be Slow and How to Optimize It
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 2, 2025 · Databases

How to Speed Up Slow SQL Queries: Choosing Driver Tables and Join Strategies

This article analyzes a slow SQL query by examining driver tables, execution plans, and table row counts, then demonstrates three optimization approaches—setting a small table as driver, setting a large table as driver, and switching to hash joins—showing their impact on execution time and providing practical guidelines for selecting the best strategy.

Driver TableHash JoinMySQL
0 likes · 16 min read
How to Speed Up Slow SQL Queries: Choosing Driver Tables and Join Strategies
Java Backend Technology
Java Backend Technology
Jul 2, 2025 · Backend Development

Generate Spring Boot CRUD Code Instantly with EasyCode Plugin

This tutorial walks you through installing the EasyCode IntelliJ plugin, creating a MySQL database, configuring IDEA’s database connection, setting up Maven dependencies and application.yml, generating entity, DAO, service, and controller code automatically, and finally running the Spring Boot project.

EasyCodeIntelliJ IDEAJava
0 likes · 6 min read
Generate Spring Boot CRUD Code Instantly with EasyCode Plugin
Architect's Must-Have
Architect's Must-Have
Jul 2, 2025 · Databases

Why MySQL Indexes Matter: From Basics to B+Tree Mastery

This article explains what MySQL indexes are, how they work, their advantages and drawbacks, the different index types, the inner workings of B+Tree structures, and the differences between clustered and non‑clustered indexes, providing practical insights for database optimization.

B+ TreeInnoDBMySQL
0 likes · 10 min read
Why MySQL Indexes Matter: From Basics to B+Tree Mastery
Architect's Must-Have
Architect's Must-Have
Jul 2, 2025 · Databases

Understanding Database Indexes: Structures, Types, and Best Practices

This article explains the fundamentals of database indexes, covering their purpose, underlying data structures such as B‑Tree, B+‑Tree, and hash tables, the advantages and drawbacks, different index categories in MySQL, and practical SQL examples for primary, secondary, and unique indexes.

B-TreeDatabase IndexesMySQL
0 likes · 9 min read
Understanding Database Indexes: Structures, Types, and Best Practices
21CTO
21CTO
Jul 1, 2025 · Databases

Why a 20‑Year‑Old MySQL Bug Still Threatens Data Integrity

A two‑decade‑old MySQL bug (bug 11472) that prevents triggers from firing on cascading foreign‑key updates has remained unfixed, sparking community frustration, debates over ACID compliance, and a shift toward alternatives like PostgreSQL in modern applications.

ACIDDatabase BugMySQL
0 likes · 5 min read
Why a 20‑Year‑Old MySQL Bug Still Threatens Data Integrity
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 30, 2025 · Databases

How Large Language Models Can Revolutionize MySQL Operations

This guide explains how integrating large language models with MySQL can transform traditional database management by enabling intelligent fault diagnosis, automatic SQL optimization, knowledge‑base updates, and a complete monitoring‑optimization feedback loop, complete with implementation steps, code samples, and best‑practice recommendations.

MySQLdatabase operations
0 likes · 17 min read
How Large Language Models Can Revolutionize MySQL Operations
IT Services Circle
IT Services Circle
Jun 30, 2025 · Backend Development

What Makes Java Interviews Tough? A Deep Dive into Concurrency, JVM, MySQL, and More

This article analyzes 58.com’s recent business struggles and layoffs, then presents a comprehensive set of Java interview questions covering synchronized vs. Lock, JVM memory layout, garbage collection, TCP connection teardown, MySQL indexing pitfalls, and common sorting algorithms, providing detailed explanations and code examples.

JVMJavaMySQL
0 likes · 18 min read
What Makes Java Interviews Tough? A Deep Dive into Concurrency, JVM, MySQL, and More
Su San Talks Tech
Su San Talks Tech
Jun 30, 2025 · Databases

10 Proven Index Design Rules to Supercharge Database Performance

This article presents ten practical rules for designing database indexes—covering business‑scenario analysis, the left‑most prefix principle, avoiding over‑indexing, using covering indexes, data‑type choices, function traps, prefix indexes, NULL handling, maintenance scripts, and monitoring—each illustrated with SQL examples, diagrams, and real‑world performance gains.

Covering IndexDatabase IndexingMySQL
0 likes · 13 min read
10 Proven Index Design Rules to Supercharge Database Performance
FunTester
FunTester
Jun 28, 2025 · Backend Development

Optimizing User Info Cache Expiration in Redis for High‑Traffic Systems

This article explains why setting appropriate Redis expiration times for user information improves performance, describes a Java test case that simulates realistic access patterns, and outlines common cache‑expiration scenarios with practical testing guidelines to balance freshness, memory usage, and database load.

MySQLcache expirationperformance testing
0 likes · 8 min read
Optimizing User Info Cache Expiration in Redis for High‑Traffic Systems
IT Xianyu
IT Xianyu
Jun 26, 2025 · Databases

Master DataGrip: Connect MySQL & PostgreSQL Quickly with Step‑by‑Step Guide

This tutorial walks you through preparing your environment, configuring DataGrip, and executing SQL scripts to connect and manage both MySQL and PostgreSQL databases, complete with hardware requirements, connection parameters, sample code, troubleshooting tips, and performance optimization advice.

DataGripIDEMySQL
0 likes · 8 min read
Master DataGrip: Connect MySQL & PostgreSQL Quickly with Step‑by‑Step Guide
Su San Talks Tech
Su San Talks Tech
Jun 25, 2025 · Databases

Why MyBatis‑Plus saveBatch Is Slow and How to Speed It Up 30×

This article analyzes the poor performance of MyBatis‑Plus saveBatch, compares it with single inserts, manual SQL batching, and JDBC executeBatch, and shows how enabling the rewriteBatchedStatements flag can dramatically improve batch insert speed.

Batch InsertJDBCMyBatis-Plus
0 likes · 10 min read
Why MyBatis‑Plus saveBatch Is Slow and How to Speed It Up 30×
Top Architect
Top Architect
Jun 24, 2025 · Backend Development

How to Sync MySQL Data to Elasticsearch: Strategies, Pros & Cons

This article explains why MySQL‑Elasticsearch synchronization is needed in large‑scale projects, compares several sync methods—including synchronous and asynchronous double‑write, Logstash, Binlog, Canal, and Alibaba Cloud DTS—detailing their implementation steps, advantages, disadvantages, and typical application scenarios.

BackendBinlogCanal
0 likes · 17 min read
How to Sync MySQL Data to Elasticsearch: Strategies, Pros & Cons
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 24, 2025 · Databases

Why MySQL 8.0 Table Rebuilds Slow Down and How to Fix It

MySQL 8.0 (especially versions 8.0.20+) suffers a performance regression in table‑rebuilding operations like ALTER TABLE … FORCE, running up to three times slower than 5.7 due to the default innodb_doublewrite_pages setting, but the issue can be mitigated by adjusting the parameter or upgrading to 8.4+.

ALTER TABLEMySQLPerformance Regression
0 likes · 4 min read
Why MySQL 8.0 Table Rebuilds Slow Down and How to Fix It
Raymond Ops
Raymond Ops
Jun 23, 2025 · Databases

How to Deploy Multiple MySQL Instances on a Single Linux Server

This guide walks through downloading MySQL, extracting it, creating a dedicated mysql user, setting up separate data directories, initializing each instance, configuring my.cnf, creating systemd services, starting and stopping the instances, setting passwords, and troubleshooting common errors, all on a single server.

LinuxMySQLdeployment
0 likes · 23 min read
How to Deploy Multiple MySQL Instances on a Single Linux Server
IT Xianyu
IT Xianyu
Jun 22, 2025 · Databases

Master Looping and Variables in MySQL & PostgreSQL Stored Procedures

This tutorial demonstrates how to use variables and loop constructs in MySQL and PostgreSQL stored procedures to iterate over a users table, filter records by age, and simulate sending a system welcome message, while comparing syntax differences between the two databases.

LoopMySQLPostgreSQL
0 likes · 6 min read
Master Looping and Variables in MySQL & PostgreSQL Stored Procedures
Python Programming Learning Circle
Python Programming Learning Circle
Jun 21, 2025 · Backend Development

Build a Student Attendance System with Flask and WeChat MiniProgram – Step‑by‑Step Guide

This tutorial walks you through creating a student attendance management system that combines a Flask backend with a WeChat MiniProgram frontend, covering project structure, database setup, virtual environment creation, API configuration, and deployment for both server and mobile client.

FlaskMySQLStudent Attendance
0 likes · 12 min read
Build a Student Attendance System with Flask and WeChat MiniProgram – Step‑by‑Step Guide
IT Services Circle
IT Services Circle
Jun 20, 2025 · Databases

Why MySQL GROUP BY Can Be Slow and How to Optimize It

This article explains why MySQL GROUP BY queries may run slowly due to missing indexes, temporary tables, and filesort, and provides practical optimization techniques such as removing unnecessary sorting, adding indexes, tuning buffers, and using application‑level or materialized view solutions.

GROUP BYMySQLindexing
0 likes · 6 min read
Why MySQL GROUP BY Can Be Slow and How to Optimize It
IT Xianyu
IT Xianyu
Jun 19, 2025 · Databases

Master MySQL Stored Procedure Parameters: IN, OUT, INOUT Explained with Real Examples

This tutorial explains why stored procedure parameters are essential, details the differences between IN, OUT, and INOUT parameters, and provides step‑by‑step MySQL examples—including environment setup, code snippets, execution results, common FAQs, and an advanced age‑checking exercise—to help developers write flexible, reusable procedures.

IN OUT INOUTMySQLParameters
0 likes · 10 min read
Master MySQL Stored Procedure Parameters: IN, OUT, INOUT Explained with Real Examples
Programmer XiaoFu
Programmer XiaoFu
Jun 18, 2025 · Big Data

How DataX Boosts Data‑Sync Speed by 200% Across Heterogeneous Sources

This article walks through the challenges of synchronizing 50 million rows between disparate MySQL databases, explains why traditional mysqldump or file‑based methods fail, and then details how the open‑source DataX tool—its 3.0 framework, installation steps, job architecture, and JSON‑based configurations—enables fast full and incremental data transfers with concrete performance metrics.

DataXMySQLbig data integration
0 likes · 14 min read
How DataX Boosts Data‑Sync Speed by 200% Across Heterogeneous Sources
Raymond Ops
Raymond Ops
Jun 15, 2025 · Operations

Step-by-Step Guide: Deploy WordPress with NFS on CentOS 7

This tutorial walks through configuring an NFS server and client on CentOS 7, installing the LAMP stack, setting up a virtual host, deploying WordPress, configuring the MySQL database, and verifying the site works, providing complete command‑line instructions and code snippets.

CentOSLAMPMySQL
0 likes · 6 min read
Step-by-Step Guide: Deploy WordPress with NFS on CentOS 7
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.

MySQLSQL optimizationdatabase performance
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.

InnoDBMySQLTablespaces
0 likes · 18 min read
Unlocking MySQL InnoDB: Deep Dive into Tablespaces, Undo Logs, and Indexes
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 OptimizationMySQLsharding
0 likes · 13 min read
Master MySQL Performance: Slow Queries, Indexes, Transactions & Replication
Architect's Must-Have
Architect's Must-Have
Jun 9, 2025 · Databases

Master MySQL Indexes: From Basics to B+Tree Optimization

This article explains what MySQL indexes are, how they work, their types—including primary, ordinary, composite, and full‑text indexes—covers B‑Tree and B+Tree structures, page organization, clustering versus non‑clustering indexes, and practical considerations for index design and performance.

B+TreeMySQLPerformance
0 likes · 12 min read
Master MySQL Indexes: From Basics to B+Tree Optimization
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.

DenormalizationJOIN 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.

Database LocksInnoDBMySQL
0 likes · 9 min read
Mastering MySQL Locks: Types, Mechanisms, and Best Practices
Tech Freedom Circle
Tech Freedom Circle
Jun 6, 2025 · Databases

How to Design the Optimal Index for a 27‑Column Table Query (Alibaba Interview)

This article analyzes a typical Alibaba interview question that asks for the best index on a table with 27 columns for the query SELECT a, b, c FROM table WHERE d = X ORDER BY e, covering index design, field ordering, comparisons with alternative indexes, index condition pushdown, and the detailed MySQL execution process.

Covering IndexMySQLexecution plan
0 likes · 28 min read
How to Design the Optimal Index for a 27‑Column Table Query (Alibaba Interview)
Liangxu Linux
Liangxu Linux
Jun 5, 2025 · Databases

Choosing the Right MySQL HA Solution: MHA, Percona XtraDB Cluster, and Galera

An in‑depth comparison of three popular MySQL high‑availability architectures—MHA, Percona XtraDB Cluster (PXC), and Galera Cluster—covers their principles, architectures, strengths, limitations, deployment scenarios, and best‑practice recommendations to help you select the optimal solution for your production environment.

Database ReplicationGaleraMHA
0 likes · 10 min read
Choosing the Right MySQL HA Solution: MHA, Percona XtraDB Cluster, and Galera
dbaplus Community
dbaplus Community
Jun 5, 2025 · Databases

Cutting Slow SQL: Real‑World Strategies that Reduced Thousands to Double‑Digits

This article details how the activity middle‑platform team identified the root causes of slow SQL queries—such as missing indexes, large data volumes, and inefficient joins—and applied data cleaning, partitioning, indexing, and query refactoring to slash daily slow‑query counts from thousands to just dozens.

MySQLPartitioningdatabase optimization
0 likes · 17 min read
Cutting Slow SQL: Real‑World Strategies that Reduced Thousands to Double‑Digits
Instant Consumer Technology Team
Instant Consumer Technology Team
Jun 4, 2025 · Databases

Achieving High Availability for MySQL & Redis on MaShang Cloud with Distributed Sentinel

This article explains MaShang Cloud's RDS high‑availability design, detailing the distributed sentinel monitoring system, proxy layer, multi‑AZ disaster‑recovery strategies, and real‑world case studies that demonstrate how MySQL and Redis services maintain continuous, consistent access with minimal RTO and RPO.

Database ProxyDistributed SentinelMySQL
0 likes · 16 min read
Achieving High Availability for MySQL & Redis on MaShang Cloud with Distributed Sentinel
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.

CronDockerMySQL
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.

MySQLPerformanceSQL
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.

CMSMySQLnovel
0 likes · 5 min read
Open‑Source Multi‑Platform Novel Content Management System Overview
Programmer Xu Shu
Programmer Xu Shu
Jun 3, 2025 · Databases

Unlock MySQL InnoDB Secrets: How Row Formats Store Your Data

This article explains how MySQL InnoDB transforms a simple INSERT statement into a complex on‑disk record by detailing the COMPACT row format, record header, variable‑length field list, NULL bitmap, and overflow handling, helping developers optimize storage and performance.

Database StorageInnoDBMySQL
0 likes · 10 min read
Unlock MySQL InnoDB Secrets: How Row Formats Store Your Data
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.

Dynamic FieldsElasticsearchMySQL
0 likes · 10 min read
Dynamic Extension of Fields in Billion‑Row Core Tables: Architecture and Implementation
MaGe Linux Operations
MaGe Linux Operations
Jun 1, 2025 · Information Security

Patch MySQL Vulnerabilities with iptables Firewall Rules

This guide explains how to mitigate several MySQL-related security flaws—such as CVE-2022-32221, CVE-2023-21912, and CVE-2022-37434—by configuring iptables rules to restrict traffic, illustrating command usage, rule ordering, and the differences between DROP and REJECT actions.

CVEMySQLfirewall
0 likes · 6 min read
Patch MySQL Vulnerabilities with iptables Firewall Rules
IT Services Circle
IT Services Circle
Jun 1, 2025 · Databases

Understanding MySQL Dual‑Master Architecture and Replication Modes

This article explains MySQL dual‑master architecture, covering dual‑master replication, master‑slave replication, master‑master with backup nodes, and ring replication, while discussing their advantages, common pitfalls such as loop replication and data inconsistency, and practical solutions to ensure high availability and data integrity.

Dual MasterMySQLdata consistency
0 likes · 6 min read
Understanding MySQL Dual‑Master Architecture and Replication Modes
Tech Freedom Circle
Tech Freedom Circle
May 30, 2025 · Backend Development

Designing a Cache for 10 M MySQL Rows with Only 2 M Redis Slots – Meituan Interview Answer

The article analyzes a Meituan interview question about caching 10 million MySQL rows when Redis can store only 200 thousand rows, presenting a five‑step three‑tier cache architecture that separates cold and hot data, selects appropriate eviction policies, uses proactive hotspot detection, adds multi‑level defense, and employs both scheduled and real‑time pre‑heating, with performance numbers showing an 85% hit rate and 100 ms latency.

HotKeyLFULRU
0 likes · 29 min read
Designing a Cache for 10 M MySQL Rows with Only 2 M Redis Slots – Meituan Interview Answer
dbaplus Community
dbaplus Community
May 30, 2025 · Databases

Why Does MySQL SHOW PROFILE Show “System lock” for Tablespace Import?

This article examines a MySQL case where importing a 4 GB tablespace takes 13 minutes, explains why SHOW PROFILE reports most of the time in the System lock stage, and dives into the internal implementation of SHOW PROFILE, data collection, calculation, and the tablespace import code path.

MySQLProfilingSHOW PROFILE
0 likes · 14 min read
Why Does MySQL SHOW PROFILE Show “System lock” for Tablespace Import?
FunTester
FunTester
May 30, 2025 · Databases

MySQL Performance Testing Practice: Simulating New User Registration

This article demonstrates a practical MySQL performance test using a simulated e‑commerce scenario, detailing the user table schema, multithreaded Java code for inserting random user records, parameterized inputs, success counting, and resource management to evaluate and improve registration throughput.

JavaMySQLmultithreading
0 likes · 9 min read
MySQL Performance Testing Practice: Simulating New User Registration
Practical DevOps Architecture
Practical DevOps Architecture
May 29, 2025 · Databases

Quick Solutions for MySQL Table Locks

This guide outlines a step‑by‑step method to diagnose and release MySQL table locks by checking open tables, inspecting running processes, querying InnoDB transaction and lock tables, and generating KILL statements to terminate blocking sessions.

MySQLSQLTable Lock
0 likes · 3 min read
Quick Solutions for MySQL Table Locks
Su San Talks Tech
Su San Talks Tech
May 29, 2025 · Big Data

How to Sync Massive MySQL Data with Alibaba DataX – Step‑by‑Step Guide

Facing a 50‑million‑row project with inaccurate reports and cross‑database operations, this guide explains why mysqldump and simple storage methods fail, introduces Alibaba’s open‑source DataX middleware, details its architecture, installation, and step‑by‑step configurations for full and incremental MySQL data synchronization.

DataXETLMySQL
0 likes · 14 min read
How to Sync Massive MySQL Data with Alibaba DataX – Step‑by‑Step Guide
Code Ape Tech Column
Code Ape Tech Column
May 28, 2025 · Databases

Evaluating MySQL Table Size and Optimizing Large Tables with Partitioning, Sharding, and Hot‑Cold Archiving

This article explains how to assess MySQL table size from table capacity, disk usage, and instance limits, describes why large tables degrade performance due to B+‑tree depth, and presents three practical solutions—partitioning, sharding, and hot‑cold archiving—to improve query speed and manage growth.

B+ TreeHot Cold ArchivingMySQL
0 likes · 16 min read
Evaluating MySQL Table Size and Optimizing Large Tables with Partitioning, Sharding, and Hot‑Cold Archiving
php Courses
php Courses
May 28, 2025 · Backend Development

Using PHP mysqli_query to Execute MySQL Queries

This article explains how to use PHP's mysqli_query function to perform MySQL operations such as SELECT, INSERT, UPDATE, and DELETE, providing a step‑by‑step example with connection handling, query execution, result processing, and best‑practice notes.

Backend DevelopmentMySQLPHP
0 likes · 5 min read
Using PHP mysqli_query to Execute MySQL Queries
Open Source Tech Hub
Open Source Tech Hub
May 27, 2025 · Backend Development

Master MySQL Binary Packet Handling in PHP with workbunny/mysql-protocol

This guide introduces the workbunny/mysql-protocol PHP library, outlines its PHP ≥ 8.1 and optional Workerman dependencies, shows how to install it via Composer, and demonstrates using its Binary and Packet utilities for reading, writing, and manipulating MySQL protocol binary streams.

Backend DevelopmentMySQLPHP
0 likes · 3 min read
Master MySQL Binary Packet Handling in PHP with workbunny/mysql-protocol
Aikesheng Open Source Community
Aikesheng Open Source Community
May 27, 2025 · Databases

MySQL Execution Plans in Tree Format

This article introduces MySQL's tree‑style execution plan output using EXPLAIN FORMAT=TREE, explains its advantages over traditional and JSON formats, and demonstrates its practical use through eight detailed SQL examples with full plan analysis and performance insights.

MySQLSQL optimizationTree Format
0 likes · 12 min read
MySQL Execution Plans in Tree Format
IT Xianyu
IT Xianyu
May 27, 2025 · Databases

Automated MySQL Backup Script with Docker and Crontab

This guide explains how to set up an automated MySQL backup solution on AlmaLinux using Docker containers, a Bash script, and crontab, covering environment preparation, script creation, command checks, logging, error handling, and optional enhancements such as email notifications and security best practices.

DockerLinuxMySQL
0 likes · 7 min read
Automated MySQL Backup Script with Docker and Crontab
Su San Talks Tech
Su San Talks Tech
May 27, 2025 · Databases

Why MySQL Picks the Wrong Index and How to Fix It

Learn how MySQL’s optimizer decides between indexes, why the same query can suddenly use a different index with dramatically slower performance, and practical steps—including analyzing execution plans, updating statistics, checking index coverage, and rebuilding fragmented indexes—to diagnose and resolve index selection issues.

Index OptimizationMySQLdatabase tuning
0 likes · 9 min read
Why MySQL Picks the Wrong Index and How to Fix It
dbaplus Community
dbaplus Community
May 25, 2025 · Databases

How to Generate Short, Sequential Numeric IDs Without Snowflake Overhead

To replace long UUIDs with short, sequential numeric account IDs, the article explores the limitations of Snowflake’s 64‑bit IDs, evaluates MySQL auto‑increment and REPLACE INTO approaches, identifies deadlock issues, and ultimately proposes a segmented free‑ID table with batch allocation to achieve compact, ordered IDs.

MySQLauto-incrementbatch allocation
0 likes · 14 min read
How to Generate Short, Sequential Numeric IDs Without Snowflake Overhead
MaGe Linux Operations
MaGe Linux Operations
May 25, 2025 · Databases

Choosing the Right MySQL HA Solution: MHA, PXC or Galera Cluster

An in‑depth guide compares three MySQL high‑availability solutions—MHA, Percona XtraDB Cluster, and Galera Cluster—detailing their architectures, pros and cons, deployment scenarios, and best‑practice recommendations to help engineers choose the optimal HA strategy for their workloads.

Database ClusteringGaleraMHA
0 likes · 10 min read
Choosing the Right MySQL HA Solution: MHA, PXC or Galera Cluster
ITPUB
ITPUB
May 25, 2025 · Databases

MySQL vs PostgreSQL: Which Database Handles High‑Throughput Writes Faster?

A detailed benchmark comparing MySQL 9.0 and PostgreSQL 17.0 evaluates ingestion latency, throughput, saturation, and connection‑pool behavior, revealing that PostgreSQL consistently delivers lower write latency, higher QPS, better CPU and memory efficiency, and superior disk storage efficiency across both write and read workloads.

Database IngestionMySQLPostgreSQL
0 likes · 9 min read
MySQL vs PostgreSQL: Which Database Handles High‑Throughput Writes Faster?
Lin is Dream
Lin is Dream
May 25, 2025 · Databases

Master MySQL Row-to-Column Pivot: From Basics to Advanced Aggregations

This article walks through using MySQL to pivot rows into columns, covering storage concepts, practical CASE‑WHEN aggregation techniques, and detailed SQL examples for sum, count, average and max calculations, while also discussing performance considerations for medium‑scale and large‑scale data workloads.

AggregationMySQLOLAP
0 likes · 7 min read
Master MySQL Row-to-Column Pivot: From Basics to Advanced Aggregations
Architect's Guide
Architect's Guide
May 25, 2025 · Backend Development

Integrating Elasticsearch with MySQL in a Spring Boot Backend: Technical Selection, Common Package, Repository, Mapper, and Service Implementation

This article explains how to combine Elasticsearch and MySQL in a Spring Boot backend by selecting the technology stack, creating a shared Elasticsearch package, defining ES and MySQL entity classes, implementing repository and mapper interfaces, writing service logic, and demonstrating query testing.

ElasticsearchJavaMySQL
0 likes · 17 min read
Integrating Elasticsearch with MySQL in a Spring Boot Backend: Technical Selection, Common Package, Repository, Mapper, and Service Implementation
Java Tech Enthusiast
Java Tech Enthusiast
May 23, 2025 · Databases

MySQL Indexes, ACID, Raft, and gRPC: Technical Interview Insights

This article combines a Meituan salary update with detailed explanations of MySQL indexing strategies, B‑tree variations, ACID transaction properties, isolation levels, caching, handling high‑traffic queries, the Raft consensus algorithm, and an overview of gRPC, providing comprehensive backend development knowledge for interview preparation.

ACIDBackendMySQL
0 likes · 17 min read
MySQL Indexes, ACID, Raft, and gRPC: Technical Interview Insights
IT Xianyu
IT Xianyu
May 23, 2025 · Databases

Step‑by‑Step Guide to Setting Up MySQL Master‑Slave Replication with Docker

This article provides a comprehensive, step‑by‑step tutorial on deploying a MySQL master‑slave replication architecture using Docker containers, covering prerequisite checks, container setup, configuration files, replication user creation, master‑slave linking, testing data sync, and troubleshooting common issues.

DBADockerMySQL
0 likes · 8 min read
Step‑by‑Step Guide to Setting Up MySQL Master‑Slave Replication with Docker
Aikesheng Open Source Community
Aikesheng Open Source Community
May 22, 2025 · Databases

Root Cause Analysis of MySQL Replication Lag Caused by Large Transactions in a Sharding Scenario

This article examines a real‑world MySQL master‑slave replication lag issue caused by massive multi‑table transactions during a sharding operation, details the investigative steps using system tables, binlog parsing, and my2sql analysis, and proposes three practical mitigation strategies.

Large TransactionsMySQLPerformance Optimization
0 likes · 8 min read
Root Cause Analysis of MySQL Replication Lag Caused by Large Transactions in a Sharding Scenario
Sohu Tech Products
Sohu Tech Products
May 21, 2025 · Databases

How to Quickly Diagnose MySQL InnoDB Deadlocks in 3 Simple Steps

This guide walks you through locating MySQL deadlock logs, analyzing their contents to pinpoint transaction timing, order, and lock details, and identifying the root cause of the deadlock, including special locking scenarios that can trigger deadlocks.

Database TroubleshootingInnoDBMySQL
0 likes · 16 min read
How to Quickly Diagnose MySQL InnoDB Deadlocks in 3 Simple Steps
Architect
Architect
May 21, 2025 · Databases

Designing Short Numeric ID Generation Using MySQL Auto‑Increment and Segment Allocation

The article examines the challenges of generating short, user‑friendly numeric account IDs, evaluates Snowflake and MySQL auto‑increment approaches, discusses deadlock issues with REPLACE INTO, and presents a final segment‑based solution that allocates ID blocks per login server while avoiding waste and concurrency problems.

MySQLauto-incrementdatabase design
0 likes · 12 min read
Designing Short Numeric ID Generation Using MySQL Auto‑Increment and Segment Allocation
Architecture Digest
Architecture Digest
May 20, 2025 · Backend Development

Designing Short Numeric Account IDs Using MySQL Auto‑Increment and Segment Allocation

This article explores the problem of generating short, sequential numeric account IDs, evaluates the classic Snowflake algorithm, proposes a MySQL auto‑increment based solution with a dedicated ID‑generation table, analyzes deadlock issues, and finally presents a segment‑based ID allocation scheme that reduces waste and supports scaling.

MySQLPerformanceauto-increment
0 likes · 12 min read
Designing Short Numeric Account IDs Using MySQL Auto‑Increment and Segment Allocation