Tagged articles
5000 articles
Page 14 of 50
vivo Internet Technology
vivo Internet Technology
Aug 7, 2024 · Databases

MySQL 5.7 DDL vs GH-OST: A Comprehensive Comparison of Online Schema Change Tools

While MySQL 5.7 native DDL methods (copy, inplace rebuild, index build, metadata‑only) vary in speed, space use, lock impact, and binlog output, GH‑OST consistently offers the fastest execution, lowest lock blocking, real‑time replication, albeit at roughly double storage cost, making it ideal for risk‑averse online schema changes.

DDLDatabase SchemaInnoDB
0 likes · 11 min read
MySQL 5.7 DDL vs GH-OST: A Comprehensive Comparison of Online Schema Change Tools
ITPUB
ITPUB
Aug 7, 2024 · Databases

Ready-to-Use Shell Scripts for Backing Up Oracle, MySQL, PostgreSQL & openGauss

This guide provides a comprehensive collection of ready-to-use shell scripts and step-by-step instructions for backing up and restoring major databases—including Oracle RMAN, logical and physical backups, MySQL full and incremental backups with Xtrabackup, PostgreSQL logical and physical backups, and openGauss dump scripts—plus scheduling and cleanup procedures.

Database BackupMySQLOracle
0 likes · 19 min read
Ready-to-Use Shell Scripts for Backing Up Oracle, MySQL, PostgreSQL & openGauss
Java Tech Enthusiast
Java Tech Enthusiast
Aug 6, 2024 · Databases

MySQL Storage Engines: Overview, Differences, and Interview Guidance

MySQL’s pluggable storage‑engine architecture lets each table use a specific engine, with InnoDB (the default in MySQL 8.x) offering row‑level locking, ACID transactions, foreign‑key support, crash recovery, MVCC and a buffer pool, while MyISAM provides only table‑level locking, no transactions, and is suited mainly for read‑intensive workloads lacking recovery requirements.

DatabaseInnoDBInterview
0 likes · 9 min read
MySQL Storage Engines: Overview, Differences, and Interview Guidance
Code Ape Tech Column
Code Ape Tech Column
Aug 5, 2024 · Backend Development

Design and Implementation of a Generic Asynchronous Processing SDK for Java Backend

This article describes a Java‑based asynchronous processing SDK that leverages Spring AOP, transactional event listeners, Kafka, XXL‑Job, and MySQL to provide non‑intrusive, reliable, and eventually consistent background execution of business methods while preserving transaction integrity and offering configurable retry and compensation strategies.

AOPAsyncJava
0 likes · 8 min read
Design and Implementation of a Generic Asynchronous Processing SDK for Java Backend
Open Source Tech Hub
Open Source Tech Hub
Aug 4, 2024 · Databases

Sync RDS MySQL Data to Alibaba Cloud Elasticsearch with DTS

This guide walks you through using Alibaba Cloud Data Transmission Service (DTS) to continuously synchronize production data from an RDS MySQL instance to an Elasticsearch cluster, covering prerequisites, task creation, verification, Kibana queries, and incremental sync testing.

Alibaba CloudDTSElasticsearch
0 likes · 7 min read
Sync RDS MySQL Data to Alibaba Cloud Elasticsearch with DTS
Java Architect Essentials
Java Architect Essentials
Aug 2, 2024 · Databases

Migrating a SpringBoot + MyBatisPlus + MySQL Project to PostgreSQL: Common Pitfalls and Helper Scripts

This article details the step‑by‑step process of switching a SpringBoot‑MyBatisPlus application from MySQL to PostgreSQL, covering driver integration, JDBC configuration changes, numerous SQL and type‑conversion pitfalls, and provides ready‑to‑run PostgreSQL scripts for bulk column adjustments and default values.

JavaMySQLPostgreSQL
0 likes · 11 min read
Migrating a SpringBoot + MyBatisPlus + MySQL Project to PostgreSQL: Common Pitfalls and Helper Scripts
php Courses
php Courses
Aug 2, 2024 · Backend Development

Using PHP mysqli_query to Execute MySQL Queries

This article introduces the PHP mysqli_query function, demonstrates how to connect to a MySQL database, execute SELECT, INSERT, UPDATE, and DELETE statements, and explains result handling with example code, providing a concise guide for backend developers working with relational databases.

MySQLmysqli_querysql
0 likes · 4 min read
Using PHP mysqli_query to Execute MySQL Queries
Architecture & Thinking
Architecture & Thinking
Aug 1, 2024 · Databases

Choosing the Right Sharding Middleware: ShardingSphere vs MyCAT vs Vitess

This article explains why sharding is needed for high‑traffic databases, outlines vertical and horizontal partitioning, and compares three popular sharding middleware—ShardingSphere, MyCAT, and Vitess—detailing their architectures, advantages, and ideal use cases to help engineers select the right solution.

Database MiddlewareMySQLScalability
0 likes · 9 min read
Choosing the Right Sharding Middleware: ShardingSphere vs MyCAT vs Vitess
Open Source Tech Hub
Open Source Tech Hub
Aug 1, 2024 · Databases

How to Sync MySQL Data to Elasticsearch: Strategies, Pros, and Pitfalls

This article explains why MySQL‑Elasticsearch synchronization is needed, compares six practical approaches—including sync write, async write, Logstash, binlog, Canal, and Alibaba Cloud DTS—detailing their implementation methods, advantages, disadvantages, and suitable use cases for large‑scale data environments.

CanalDTSElasticsearch
0 likes · 13 min read
How to Sync MySQL Data to Elasticsearch: Strategies, Pros, and Pitfalls
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 30, 2024 · Databases

Can a MySQL Replica Omit sync_binlog=1? Experiment and Analysis

This article examines whether a MySQL replica can safely omit setting sync_binlog=1, explains the underlying InnoDB and GTID mechanisms, presents an experiment reproducing power‑loss scenarios, and analyzes how different master_auto_position settings affect data consistency and GTID continuity during recovery.

DatabaseGTIDMySQL
0 likes · 10 min read
Can a MySQL Replica Omit sync_binlog=1? Experiment and Analysis
JD Tech Talk
JD Tech Talk
Jul 30, 2024 · Databases

Database Performance Optimization and Governance for a High‑Load Application

This technical report analyzes a high‑traffic MySQL deployment with three servers, detailing disk usage, table space, QPS and slow‑SQL issues, and presents a comprehensive governance plan that includes data migration, read‑traffic offloading to replicas, MyBatis interceptor implementation, JSF monitoring, and Python automation to reduce disk pressure and improve query performance.

Data MigrationDatabase OptimizationMySQL
0 likes · 18 min read
Database Performance Optimization and Governance for a High‑Load Application
Liangxu Linux
Liangxu Linux
Jul 29, 2024 · Databases

Automate MySQL Backups and Restores with Bash, Cron, and Find

This guide shows how to create a Bash script that backs up a specific MySQL database using mysqldump, compresses the dump, automatically deletes old backups, explains the find -mtime option, and schedules the process with cron, plus detailed steps for restoring the data.

Database RestorationLinuxMySQL
0 likes · 7 min read
Automate MySQL Backups and Restores with Bash, Cron, and Find
Liangxu Linux
Liangxu Linux
Jul 29, 2024 · Databases

How to Build a Reliable MySQL Master‑Master Cluster with Keepalived Failover

This guide walks through the complete process of creating a MySQL dual‑master replication cluster, configuring replication users, synchronizing binary logs, setting up keepalived for virtual IP failover, and testing both data consistency and high‑availability monitoring.

Master-Master ReplicationMySQLdatabase clustering
0 likes · 8 min read
How to Build a Reliable MySQL Master‑Master Cluster with Keepalived Failover
dbaplus Community
dbaplus Community
Jul 29, 2024 · Databases

Why MySQL 8.038, 8.4.1, and 9.0 Crash with Thousands of Tables

Recent investigations reveal that MySQL versions 8.038, 8.4.1, and 9.0 contain severe bugs causing system crashes when handling over 10,000 tables, with additional performance bottlenecks in InnoDB startup, prompting experts to advise cautious, delayed upgrades and careful code review of related functions.

Database BugsMySQLSchema Scaling
0 likes · 5 min read
Why MySQL 8.038, 8.4.1, and 9.0 Crash with Thousands of Tables
Su San Talks Tech
Su San Talks Tech
Jul 29, 2024 · Databases

Why Is MySQL Query Slow? Hidden Factors and Proven Speed‑Up Tricks

This article explores why MySQL queries can become sluggish beyond just missing indexes, covering the full query execution flow, profiling tools, index pitfalls, connection limits, buffer pool sizing, and practical configuration tips to dramatically improve performance.

Connection PoolIndex OptimizationMySQL
0 likes · 15 min read
Why Is MySQL Query Slow? Hidden Factors and Proven Speed‑Up Tricks
ITPUB
ITPUB
Jul 27, 2024 · Databases

How to Diagnose and Optimize Extremely Slow MySQL Queries

This article explains what constitutes a slow SQL query, how to detect and analyze it using MySQL tools, and provides practical optimization steps—including indexing, business logic review, caching, scheduling, and partitioning—to dramatically reduce execution time.

DatabaseMySQLOptimization
0 likes · 7 min read
How to Diagnose and Optimize Extremely Slow MySQL Queries
Su San Talks Tech
Su San Talks Tech
Jul 26, 2024 · Databases

Mastering MySQL‑to‑Elasticsearch Sync: 4 Strategies & Top Migration Tools

This guide compares four MySQL‑to‑Elasticsearch synchronization methods—synchronous dual‑write, asynchronous MQ‑based dual‑write, timer‑driven SQL extraction, and real‑time Binlog replication—and reviews popular CDC tools such as Canal, Alibaba Cloud DTS, Databus, and others to help you choose the right solution.

CDCCanalDTS
0 likes · 13 min read
Mastering MySQL‑to‑Elasticsearch Sync: 4 Strategies & Top Migration Tools
dbaplus Community
dbaplus Community
Jul 25, 2024 · Databases

Is MySQL Insert Truly Concurrent? Experiments Reveal the Truth

Through a series of MySQL 8.0 experiments, the article demonstrates that InnoDB inserts run concurrently, explains why phantom reads can appear, and details how MVCC, insert‑intention locks, and the ReadView mechanism together prevent phantom read anomalies.

MVCCMySQLReadView
0 likes · 10 min read
Is MySQL Insert Truly Concurrent? Experiments Reveal the Truth
php Courses
php Courses
Jul 25, 2024 · Backend Development

Implementing User Registration and Data Storage with PHP Functions

This article explains how to use PHP functions to create a user registration system with input validation, password hashing, and MySQL insertion, and also demonstrates a generic data‑storage function that connects to a database and saves arbitrary data, highlighting key security and implementation steps.

Data StorageMySQLuser registration
0 likes · 4 min read
Implementing User Registration and Data Storage with PHP Functions
Java Interview Crash Guide
Java Interview Crash Guide
Jul 24, 2024 · Databases

How to Supercharge MySQL Queries: 8 Proven Optimization Techniques

Learn eight practical MySQL optimization strategies—including smarter LIMIT usage, avoiding implicit type conversion, rewriting subqueries with JOINs, handling mixed sorting, eliminating costly EXISTS clauses, pushing conditions, pre‑filtering data, and leveraging intermediate result sets—to dramatically reduce query execution time from seconds to milliseconds.

LIMITMySQLSQL performance
0 likes · 15 min read
How to Supercharge MySQL Queries: 8 Proven Optimization Techniques
Java Tech Enthusiast
Java Tech Enthusiast
Jul 24, 2024 · Databases

Differences Between MySQL TINYINT(1) and BIT(1) for Boolean Storage

MySQL’s TINYINT(1) stores a full byte integer allowing any value from 0‑255 (or –128‑127 signed) and works with arithmetic, offering broad compatibility, while BIT(1) stores a single bit limited to 0 or 1, is MySQL‑specific, and is best used only when true/false storage and minimal space are essential, making TINYINT(1) the generally preferred choice unless strict boolean constraints apply.

BitData TypesDatabase
0 likes · 4 min read
Differences Between MySQL TINYINT(1) and BIT(1) for Boolean Storage
Architecture & Thinking
Architecture & Thinking
Jul 24, 2024 · Databases

Why MySQL Pagination Slows Down and How to Speed It Up

This article examines why MySQL pagination using large LIMIT OFFSET values becomes increasingly slow, explains the underlying scanning behavior, and presents six practical optimization techniques—including indexed subqueries, cursor‑based pagination, column selection, partitioning, caching, and hardware considerations—to dramatically improve query performance on massive tables.

DatabaseMySQLOptimization
0 likes · 7 min read
Why MySQL Pagination Slows Down and How to Speed It Up
Senior Tony
Senior Tony
Jul 20, 2024 · Databases

How MySQL’s Skip Scan Defies the Leftmost Prefix Rule

This article explains MySQL’s composite index leftmost‑prefix rule, demonstrates how the Skip Scan Range Access Method introduced in MySQL 8.0.13 can use indexes without following the rule, provides step‑by‑step examples, code snippets, and discusses its implementation, benefits, and limitations.

Composite IndexDatabase OptimizationMySQL
0 likes · 10 min read
How MySQL’s Skip Scan Defies the Leftmost Prefix Rule
IT Services Circle
IT Services Circle
Jul 20, 2024 · Databases

Differences Between TINYINT(1) and BIT(1) in MySQL

Both TINYINT(1) and BIT(1) are common MySQL data types for storing Boolean values, but they differ in storage size, range, syntax, compatibility, and ideal use cases, with TINYINT offering broader integer support and portability, while BIT provides true single‑bit storage for strict Boolean fields.

BitData TypesDatabase Design
0 likes · 6 min read
Differences Between TINYINT(1) and BIT(1) in MySQL
The Dominant Programmer
The Dominant Programmer
Jul 19, 2024 · Databases

Writing High‑Quality SQL: Practical MySQL Optimization Tips

To avoid common MySQL pitfalls, the article compiles practical SQL writing guidelines—selecting specific columns instead of *, using LIMIT 1, avoiding OR in WHERE, optimizing pagination, handling LIKE patterns, minimizing redundant indexes, preferring INNER JOIN, and leveraging covering indexes and EXPLAIN for efficient query execution.

Best PracticesDatabaseMySQL
0 likes · 18 min read
Writing High‑Quality SQL: Practical MySQL Optimization Tips
Top Architect
Top Architect
Jul 19, 2024 · Databases

Design and Implementation of Database Table Sharding for a Loan Repayment System

The article details a real‑world backend engineering project where a loan repayment service is refactored to use table sharding with ShardingSphere, covering design decisions, table naming, sharding algorithms, historical data migration, dynamic switches, transaction management, code examples, and practical pitfalls.

BackendDatabaseMySQL
0 likes · 19 min read
Design and Implementation of Database Table Sharding for a Loan Repayment System
IT Services Circle
IT Services Circle
Jul 19, 2024 · Backend Development

Comprehensive Backend Interview Guide: MySQL Indexes, Redis Architecture, Java SpringBoot Auto‑Configuration, and JVM Memory Management

This article provides an in-depth overview of common backend interview topics, covering MySQL index structures and storage engines, Redis single‑threaded design and persistence mechanisms, Java transaction ACID properties, SpringBoot auto‑configuration principles, JVM memory regions, class loading, and garbage‑collection algorithms, all illustrated with code examples.

JVMJavaMySQL
0 likes · 40 min read
Comprehensive Backend Interview Guide: MySQL Indexes, Redis Architecture, Java SpringBoot Auto‑Configuration, and JVM Memory Management
Architect
Architect
Jul 17, 2024 · Databases

Design and Implementation of Table Sharding for Cash Repayment System Using ShardingSphere and SpringBoot

The article describes how a one‑year‑old loan/repayment service was refactored by introducing a 50‑table sharding scheme with ShardingSphere, detailing the design decisions, historical data migration, code changes, configuration files, pitfalls, and runtime synchronization strategies to achieve efficient query performance on billions of rows.

Backend DevelopmentData MigrationMySQL
0 likes · 23 min read
Design and Implementation of Table Sharding for Cash Repayment System Using ShardingSphere and SpringBoot
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 17, 2024 · Databases

Data Migration Strategies: Dual‑Write and Gray‑Scale Switch Approaches

This article presents two practical database migration schemes—dual‑write and a gray‑scale switch—detailing their workflows, code refactoring, data synchronization using Syncer, consistency verification with sync‑diff‑inspector, and operational trade‑offs for minimizing downtime and ensuring data integrity.

Dual WriteGray SwitchMySQL
0 likes · 13 min read
Data Migration Strategies: Dual‑Write and Gray‑Scale Switch Approaches
JD Cloud Developers
JD Cloud Developers
Jul 17, 2024 · Databases

Choosing the Right Database: MySQL, Redis, HBase, ClickHouse, MongoDB, Elasticsearch, Neo4j, Prometheus & Milvus Explained

Explore nine major database technologies—from traditional relational MySQL to NoSQL Redis, columnar HBase and ClickHouse, document-oriented MongoDB, search engine Elasticsearch, graph Neo4j, time‑series Prometheus, and vector Milvus—plus practical best‑practice guides, real‑world polyglot persistence scenarios, and recommended resources for mastering modern data storage.

ClickHouseDatabasesElasticsearch
0 likes · 50 min read
Choosing the Right Database: MySQL, Redis, HBase, ClickHouse, MongoDB, Elasticsearch, Neo4j, Prometheus & Milvus Explained
JD Tech Talk
JD Tech Talk
Jul 17, 2024 · Databases

A Comprehensive Guide to 9 Database Types and Polyglot Persistence

This article provides an in‑depth overview of nine major database categories—including relational, key‑value, columnar, document, graph, time‑series, and vector databases—detailing their strengths, weaknesses, best practices, and typical application scenarios, and explains how polyglot persistence combines multiple databases for optimal performance and scalability.

ClickHouseDatabasesElasticsearch
0 likes · 41 min read
A Comprehensive Guide to 9 Database Types and Polyglot Persistence
ITPUB
ITPUB
Jul 16, 2024 · Databases

Why MySQL 8.0.38 Crashes with Over 10,000 Tables and How to Fix It

Upgrading to MySQL 8.0.38 (or later) causes crashes when an instance contains more than ten thousand tables, even with validate_tablespace_paths disabled, but using a shared or general tablespace configuration can reliably avoid the failure.

CrashInnoDBMySQL
0 likes · 4 min read
Why MySQL 8.0.38 Crashes with Over 10,000 Tables and How to Fix It
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 16, 2024 · Databases

How to Resolve MySQL "Index column size too large" (Error 1709) After Upgrading to 8.0.21

This article analyzes the MySQL 1709/1071 index‑column‑size‑too‑large error that appears after upgrading from 5.6 to 8.0.21, explains its relation to compact/redundant row formats, references the underlying bug, and provides practical steps and SQL queries to detect and fix affected tables before or after the upgrade.

Database UpgradeError 1709MySQL
0 likes · 12 min read
How to Resolve MySQL "Index column size too large" (Error 1709) After Upgrading to 8.0.21
Efficient Ops
Efficient Ops
Jul 14, 2024 · Databases

10 Essential MySQL Table Naming Rules Every Engineer Should Follow

This article presents Alibaba's concise 10‑point MySQL schema standard, covering boolean field naming, lowercase identifiers, singular table names, reserved word avoidance, index naming conventions, decimal usage, fixed‑length char, variable‑length varchar/text, mandatory audit fields, and the prohibition of physical deletions, offering practical guidance for clean database design.

Best PracticesDatabase DesignMySQL
0 likes · 5 min read
10 Essential MySQL Table Naming Rules Every Engineer Should Follow
Java Tech Enthusiast
Java Tech Enthusiast
Jul 12, 2024 · Databases

New Features, Deprecations, and Removals in MySQL 9.0

MySQL 9.0, released July 2 2024, introduces EXPLAIN JSON output stored in variables, native EVENT DDL statements, and two new performance‑schema tables for variable metadata, while deprecating the old variables_info columns and removing the mysql_native_password plugin in favor of caching_sha2_password, enhancing observability and security.

AuthenticationDatabaseEXPLAIN
0 likes · 11 min read
New Features, Deprecations, and Removals in MySQL 9.0
Selected Java Interview Questions
Selected Java Interview Questions
Jul 12, 2024 · Backend Development

Efficient Large File Upload and Database Insertion with Spring Boot, Vue, and Multithreading

This article demonstrates how to implement a high‑performance file upload system using Vue's Element Plus component on the frontend and Spring Boot on the backend, comparing single‑row inserts, batch inserts, and a multithreaded producer‑consumer approach to dramatically reduce MySQL insertion time.

Batch InsertMySQLSpring Boot
0 likes · 10 min read
Efficient Large File Upload and Database Insertion with Spring Boot, Vue, and Multithreading
Su San Talks Tech
Su San Talks Tech
Jul 11, 2024 · Databases

Master MySQL Index Optimization with EXPLAIN: A Practical Guide

This article explains why slow queries occur in high‑traffic applications, outlines effective index‑optimization steps, and demonstrates how to use MySQL's EXPLAIN command to analyze execution plans, interpret each column, and improve database performance.

Database PerformanceEXPLAINMySQL
0 likes · 15 min read
Master MySQL Index Optimization with EXPLAIN: A Practical Guide
Efficient Ops
Efficient Ops
Jul 10, 2024 · Databases

Boost MySQL DBA Productivity with Essential Open‑Source Tools

This article introduces a collection of practical open‑source utilities—including SQLTXPLAIN, SOAR, SQLAdvisor, and Percona Toolkit tools—that streamline common MySQL DBA tasks such as schema changes, replication checks, slow‑query analysis, and data consistency verification, helping engineers work faster and more efficiently.

DBA toolsMySQLSQL optimization
0 likes · 8 min read
Boost MySQL DBA Productivity with Essential Open‑Source Tools
Senior Tony
Senior Tony
Jul 10, 2024 · Databases

When to Use MySQL Hash Join vs. Nested Loop: A Practical Guide

This article explains MySQL's hash join algorithm, compares it with nested‑loop joins, shows how to read execution steps and EXPLAIN output, discusses extended hash‑join scenarios, and weighs the trade‑offs of performing multi‑table joins inside the database versus in application code.

Database OptimizationHash JoinJoin Algorithms
0 likes · 8 min read
When to Use MySQL Hash Join vs. Nested Loop: A Practical Guide
dbaplus Community
dbaplus Community
Jul 9, 2024 · Databases

Why MySQL LIMIT Can Kill Performance and How to Fix It

This article explains how the LIMIT clause can cause massive I/O and CPU overhead in MySQL queries, analyzes the underlying B+‑tree index structure and execution plans, and presents practical optimization techniques such as covering indexes, sub‑queries, and partitioning.

LIMITMySQLperformance
0 likes · 9 min read
Why MySQL LIMIT Can Kill Performance and How to Fix It
Java Tech Enthusiast
Java Tech Enthusiast
Jul 8, 2024 · Databases

Fuzzy Company Name Matching Using MySQL Regular Expressions

The article describes a MySQL‑based fuzzy matching solution for preventing duplicate company entries in a business‑approval workflow, detailing preprocessing of Chinese company names, word segmentation with IKAnalyzer, RegExp pattern generation, and a custom SQL query that ranks results by keyword‑match ratio without using external search engines.

Chinese Word SegmentationMySQLcompany name validation
0 likes · 9 min read
Fuzzy Company Name Matching Using MySQL Regular Expressions
21CTO
21CTO
Jul 7, 2024 · Databases

What’s New in MySQL 9.0? Key Features, Deprecations, and Upgrade Tips

Oracle’s July release introduces MySQL 9.0 Innovation alongside updates to 8.0 and the LTS 8.4 series, bringing new Vector data types, JavaScript stored procedures, upgraded libraries, event scheduling enhancements, and deprecations such as SHA‑1, while outlining future release cadence and upgrade considerations.

9.0Database UpgradeFeature Deprecation
0 likes · 5 min read
What’s New in MySQL 9.0? Key Features, Deprecations, and Upgrade Tips
Java Tech Enthusiast
Java Tech Enthusiast
Jul 7, 2024 · Databases

MySQL Query Optimization and Performance Tuning Guide

This guide presents a thorough MySQL performance checklist, covering efficient SQL writing, data‑type choices, selective column retrieval, smart joins, batch inserts, and query‑cache settings; it details key InnoDB and server variable tuning, proper index creation and usage, common pitfalls, and how to analyze and improve queries with EXPLAIN.

DatabaseMySQLquery optimization
0 likes · 17 min read
MySQL Query Optimization and Performance Tuning Guide
dbaplus Community
dbaplus Community
Jul 7, 2024 · Databases

Why MySQL 5.7 Still Beats 8.x in Real‑World Benchmarks – A Deep Dive

Percona’s analysis of MySQL version adoption reveals a slow migration to 8.x, prompting extensive performance tests that compare default and tuned configurations of MySQL 5.7, 8.0.36, 8.4, Percona Server, and MariaDB using sysbench and TPC‑C benchmarks, with detailed results showing consistent performance regressions in newer releases.

Database OptimizationMySQLPercona
0 likes · 11 min read
Why MySQL 5.7 Still Beats 8.x in Real‑World Benchmarks – A Deep Dive
Senior Tony
Senior Tony
Jul 4, 2024 · Databases

Why MySQL Joins Aren’t Always Slow: Inside the Four Join Algorithms

This article uses a realistic interview scenario to explore why multi-table joins in MySQL are not inherently slow, detailing four join algorithms—simple nested-loop, index nested-loop, block nested-loop, and batched key access—along with their pseudo‑code, execution steps, performance trade‑offs, and the impact of features like MRR and recent optimizer changes.

Index JoinJoin AlgorithmsMySQL
0 likes · 10 min read
Why MySQL Joins Aren’t Always Slow: Inside the Four Join Algorithms
vivo Internet Technology
vivo Internet Technology
Jul 3, 2024 · Databases

End-to-End Data Consistency Verification for MySQL in DTS

The Vivo Internet Storage R&D team's article describes an end‑to‑end MySQL data‑consistency verification tool for DTS that uses fixed‑size chunking and CRC32/MD5 fingerprint aggregation to quickly compare source and target tables, pinpoint mismatched rows, and enable automated or manual correction while minimizing impact on replication.

CRC32ChunkingDTS
0 likes · 13 min read
End-to-End Data Consistency Verification for MySQL in DTS
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 3, 2024 · Databases

Analysis of MySQL DELETE Deadlock and Locking Mechanisms

This article examines why identical DELETE statements on a MySQL table with a unique index can cause deadlocks, reviews InnoDB lock types, reproduces the issue with SQL and Java code, and discusses mitigation strategies such as version upgrades, isolation level changes, and distributed locks.

DatabaseDeleteInnoDB
0 likes · 14 min read
Analysis of MySQL DELETE Deadlock and Locking Mechanisms
ITPUB
ITPUB
Jul 3, 2024 · Databases

Why Skipping Secondary Indexes Can Speed Up MySQL Queries: A Real‑World Example

A client complained about a 35‑second MySQL query that ignored indexes; by analyzing column selectivity and rewriting the condition to use the auto‑increment primary key instead of a secondary index, the execution time dropped to 2.55 seconds, illustrating why primary‑key access is often faster.

Database TuningIndex OptimizationMySQL
0 likes · 5 min read
Why Skipping Secondary Indexes Can Speed Up MySQL Queries: A Real‑World Example
Java Tech Enthusiast
Java Tech Enthusiast
Jul 3, 2024 · Databases

MySQL Database Backup with Shell Script and Cron

This guide explains how to set up automated MySQL database backups using a shell script that runs mysqldump (optionally compressed), stores the files on a local disk, makes the script executable, and schedules it with a cron job after verifying disk space and cron availability.

DatabaseLinuxMySQL
0 likes · 5 min read
MySQL Database Backup with Shell Script and Cron
dbaplus Community
dbaplus Community
Jul 2, 2024 · Databases

What’s New in MySQL 9.0 Innovation Edition? Key Features and Improvements

MySQL 9.0 Innovation Edition, released on July 1, 2024, introduces major changes such as the removal of the mysql_native_password plugin, new PREPARE support for event statements, expanded Performance Schema tables, JSON‑formatted EXPLAIN ANALYZE output, Windows installer fixes, and several MySQL Shell enhancements.

DatabaseInnovationEditionMySQL
0 likes · 4 min read
What’s New in MySQL 9.0 Innovation Edition? Key Features and Improvements
ITPUB
ITPUB
Jul 1, 2024 · Databases

Why MySQL 8.4 Fails with io_setup() EAGAIN and How to Fix It

When upgrading MySQL 8.0 to 8.4 on a host running multiple instances, some instances fail to start with a series of InnoDB errors caused by io_setup() returning EAGAIN, which can be resolved by increasing the system's aio‑max‑nr limit and adjusting InnoDB I/O thread settings.

AIODatabase ConfigurationEAGAIN
0 likes · 13 min read
Why MySQL 8.4 Fails with io_setup() EAGAIN and How to Fix It
dbaplus Community
dbaplus Community
Jun 30, 2024 · Databases

How MySQL’s Write‑Ahead Log Safeguards Data During Power Failures

An in‑depth guide explains MySQL’s write‑ahead log mechanism, covering buffer pool, redo and undo logs, checkpoint types, and how the system recovers from power failures, with step‑by‑step examples and practical configuration tips for reliable data consistency.

CheckpointDatabase RecoveryMySQL
0 likes · 12 min read
How MySQL’s Write‑Ahead Log Safeguards Data During Power Failures
Architecture Digest
Architecture Digest
Jun 30, 2024 · Cloud Native

Why Docker May Not Be Suitable for Running MySQL: N Reasons Explained

The article analyzes why deploying MySQL in Docker containers can lead to data‑security, performance, state‑management and resource‑isolation problems, while also outlining scenarios where containerizing MySQL might be feasible and offering practical mitigation strategies.

ContainerizationData SecurityDocker
0 likes · 6 min read
Why Docker May Not Be Suitable for Running MySQL: N Reasons Explained
Ops Development & AI Practice
Ops Development & AI Practice
Jun 28, 2024 · Databases

Why MySQL Blocks Hosts After Connection Errors and How to Fix It

This guide explains why MySQL blocks a host after many failed connections, outlines common causes such as wrong credentials, network issues, and configuration errors, and provides step‑by‑step solutions including log inspection, credential verification, network checks, application fixes, and commands to unblock the host while also offering preventive measures.

MySQLTroubleshootingconnection errors
0 likes · 5 min read
Why MySQL Blocks Hosts After Connection Errors and How to Fix It
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 26, 2024 · Databases

Slow Locking Logic in MySQL InnoDB

This article explains the slow‑path row‑locking algorithm used by InnoDB in MySQL 8.0.32, detailing how the engine checks whether a transaction already holds a lock, determines if it must wait, reuses existing lock structures, and allocates new ones when necessary.

Concurrency ControlDatabase InternalsInnoDB
0 likes · 15 min read
Slow Locking Logic in MySQL InnoDB
Selected Java Interview Questions
Selected Java Interview Questions
Jun 25, 2024 · Databases

Design and Implementation of Table Sharding for Cash Repayment Applications Using ShardingSphere and Spring Boot

This article details the end‑to‑end design, configuration, and code implementation of a 50‑table sharding solution for cash repayment and loan application data, covering database schema planning, historical data migration, backend query adaptation, dynamic switches, scheduled consistency checks, and practical pitfalls encountered with Spring Boot 3 and ShardingSphere.

Backend DevelopmentJavaMySQL
0 likes · 22 min read
Design and Implementation of Table Sharding for Cash Repayment Applications Using ShardingSphere and Spring Boot
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 25, 2024 · Databases

Analyzing a BenchmarkSQL‑Induced Infinite Loop in MySQL under REPEATABLE‑READ Isolation

This article investigates why BenchmarkSQL stalls during MySQL performance testing, tracing the issue to REPEATABLE‑READ isolation causing a dead‑loop in delete‑select transactions, and demonstrates how switching to READ‑COMMITTED resolves the problem through detailed code inspection and experimental verification.

BenchmarkSQLMySQLperformance testing
0 likes · 8 min read
Analyzing a BenchmarkSQL‑Induced Infinite Loop in MySQL under REPEATABLE‑READ Isolation
php Courses
php Courses
Jun 19, 2024 · Databases

Using mysqli_fetch_assoc in PHP to Retrieve Query Results

This tutorial explains how to connect to a MySQL database using PHP's mysqli extension, execute queries with mysqli_query, and retrieve each row with mysqli_fetch_assoc, providing complete code examples and a full script for efficient database handling.

DatabaseMySQLMySQLi
0 likes · 4 min read
Using mysqli_fetch_assoc in PHP to Retrieve Query Results