Tagged articles
5000 articles
Page 8 of 50
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.

BinaryPHPbackend-development
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.

SQL OptimizationTree Formatdatabase
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.

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

Database TuningIndex Optimizationmysql
0 likes · 9 min read
Why MySQL Picks the Wrong Index and How to Fix It
Aikesheng Open Source Community
Aikesheng Open Source Community
May 26, 2025 · Information Security

Building a Minimal Offline MySQL CVE Scanning Tool with DuckDB

This article demonstrates how to create a lightweight, offline MySQL CVE scanning and reporting tool by cloning the CVEProject JSON repository, leveraging DuckDB for fast JSON parsing and SQL queries, and providing simple shell commands for data updates, version scanning, and vulnerability matching.

CVEDuckDBShellScript
0 likes · 6 min read
Building a Minimal Offline MySQL CVE Scanning Tool with DuckDB
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.

Distributed SystemsID generationauto_increment
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.

GaleraMHAPercona XtraDB Cluster
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.

Connection PoolDatabase IngestionLatency
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.

OLAPOLTPRow to Column
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.

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

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

DBADockerReplication
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 TransactionsReplication Lagmysql
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.

InnoDBdatabase troubleshootingdeadlock
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.

Database designDistributed Systemsauto_increment
0 likes · 12 min read
Designing Short Numeric ID Generation Using MySQL Auto‑Increment and Segment Allocation
Java Backend Technology
Java Backend Technology
May 21, 2025 · Big Data

Master DataX: Fast Offline Data Sync for MySQL without mysqldump

This guide explains how to use Alibaba's open‑source DataX tool to perform high‑performance offline synchronization between heterogeneous MySQL databases, covering installation, framework design, job configuration, full‑ and incremental sync, and practical command‑line examples.

Big DataDataXETL
0 likes · 15 min read
Master DataX: Fast Offline Data Sync for MySQL without mysqldump
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.

ID generationauto-incrementmysql
0 likes · 12 min read
Designing Short Numeric Account IDs Using MySQL Auto‑Increment and Segment Allocation
IT Xianyu
IT Xianyu
May 20, 2025 · Operations

Building a Three‑Server High‑Availability MySQL Cluster with HAProxy on Almalinux

This guide explains why three servers are needed for high availability, walks through hardware and software preparation, network configuration, MySQL master‑slave replication setup, HAProxy load‑balancing, and firewall/SELinux adjustments, providing complete command‑line examples for each step.

AlmaLinuxHAProxyLinux operations
0 likes · 8 min read
Building a Three‑Server High‑Availability MySQL Cluster with HAProxy on Almalinux
Top Architect
Top Architect
May 19, 2025 · Databases

MySQL to Elasticsearch Data Synchronization Strategies and Solutions

This article explains why MySQL alone struggles with large‑scale queries, introduces Elasticsearch as a complementary search store, and compares several synchronization approaches—including synchronous write, asynchronous write, Logstash, binlog real‑time sync, Canal, and Alibaba Cloud DTS—detailing their implementation methods, advantages, disadvantages, and typical application scenarios.

CanalDTSElasticsearch
0 likes · 16 min read
MySQL to Elasticsearch Data Synchronization Strategies and Solutions
MaGe Linux Operations
MaGe Linux Operations
May 17, 2025 · Databases

Master MySQL: Full Guide to Theory, Commands & Real-World Practices

This comprehensive MySQL tutorial covers everything from core concepts and architecture to practical CRUD operations, advanced queries, indexing, transaction control, stored procedures, triggers, replication, performance tuning, backup strategies, and real-world use cases, providing a complete roadmap for developers and DBAs.

BackupReplicationStored Procedures
0 likes · 25 min read
Master MySQL: Full Guide to Theory, Commands & Real-World Practices
IT Services Circle
IT Services Circle
May 16, 2025 · Databases

Internship Guidance, ByteDance Three‑Round Interview Experience, MySQL Replication Mechanics, and I/O Model Overview

The article combines practical advice for fresh graduates seeking internships and interview tips, shares a detailed ByteDance three‑round backend interview experience, explains MySQL master‑slave replication stages, binlog formats, and compares blocking, non‑blocking, multiplexed, and asynchronous I/O models.

I/OReplicationSystems
0 likes · 15 min read
Internship Guidance, ByteDance Three‑Round Interview Experience, MySQL Replication Mechanics, and I/O Model Overview
Architect's Must-Have
Architect's Must-Have
May 16, 2025 · Databases

Understanding Database Indexes: Structures, Types, and Trade‑offs

This article explains the fundamentals of database indexes, covering their purpose, underlying structures such as hash tables, B‑Tree and B+‑Tree, the advantages and drawbacks, and the various index types in MySQL including clustered, non‑clustered, primary, secondary, unique, prefix, and full‑text indexes.

B-treeHashindex
0 likes · 9 min read
Understanding Database Indexes: Structures, Types, and Trade‑offs
Java Backend Technology
Java Backend Technology
May 16, 2025 · Databases

How to Prevent MySQL Auto‑Increment ID Exhaustion: 6 Proven Strategies

When MySQL auto‑increment IDs approach their limit, this guide explains six practical solutions—including expanding column types, using UUIDs, segmenting ID generation, composite keys, adjusting increment steps, and sharding databases—to ensure scalable, unique identifiers for large‑scale applications.

ID Exhaustionauto_incrementdatabase scaling
0 likes · 7 min read
How to Prevent MySQL Auto‑Increment ID Exhaustion: 6 Proven Strategies
Zhuanzhuan Tech
Zhuanzhuan Tech
May 15, 2025 · Databases

Dynamic Extension of Fields in Billion‑Row Tables: Challenges and Practical Solutions

This article examines the difficulties of adding new fields to a core billion‑row MySQL table—including locking, page splitting, and index degradation—and presents a configuration‑driven, three‑layer architecture that uses JSON extension fields, extension tables, and Elasticsearch to achieve safe, scalable dynamic schema evolution.

Database designDynamic SchemaJSON field
0 likes · 8 min read
Dynamic Extension of Fields in Billion‑Row Tables: Challenges and Practical Solutions
Selected Java Interview Questions
Selected Java Interview Questions
May 15, 2025 · Backend Development

Six Common Approaches to Synchronize MySQL Data to Elasticsearch

This article reviews six mainstream solutions for keeping MySQL and Elasticsearch in sync—including synchronous double‑write, asynchronous MQ‑based double‑write, Logstash polling, Canal binlog listening, DataX batch migration, and Flink stream processing—detailing their scenarios, advantages, drawbacks, and practical code examples to guide optimal technical selection.

CanalElasticsearchFlink
0 likes · 8 min read
Six Common Approaches to Synchronize MySQL Data to Elasticsearch
Cognitive Technology Team
Cognitive Technology Team
May 15, 2025 · Databases

How to Solve MySQL Deep Pagination Performance Issues

This article analyzes why large OFFSET values cause severe MySQL performance degradation and presents multiple optimization techniques—including range queries, subqueries, delayed joins, covering indexes, sharding, caching, and search engine integration—along with their advantages, limitations, and practical recommendations.

Database Optimizationcachingindexing
0 likes · 11 min read
How to Solve MySQL Deep Pagination Performance Issues
Sohu Tech Products
Sohu Tech Products
May 14, 2025 · Databases

How to Quickly Diagnose MySQL InnoDB Deadlocks in 3 Simple Steps

This guide walks you through locating the deadlock log, analyzing its contents to determine the time, order, and involved SQL statements, and pinpointing the root cause of MySQL InnoDB deadlocks, including special locking scenarios and how to interpret lock structures.

InnoDBLock Analysisdatabase troubleshooting
0 likes · 16 min read
How to Quickly Diagnose MySQL InnoDB Deadlocks in 3 Simple Steps
Java Captain
Java Captain
May 14, 2025 · Databases

Guide to Setting Up ShardingSphere with Docker for Database Sharding, Read‑Write Splitting, and SpringBoot Integration

This guide demonstrates how to set up Docker‑based MySQL instances, configure ShardingSphere‑Proxy for database sharding and read‑write splitting, and integrate ShardingSphere‑JDBC with SpringBoot 2.x using YAML configurations and Maven dependencies, providing complete code snippets and default connection details.

DockerShardingSphereSpringBoot
0 likes · 11 min read
Guide to Setting Up ShardingSphere with Docker for Database Sharding, Read‑Write Splitting, and SpringBoot Integration
Senior Brother's Insights
Senior Brother's Insights
May 13, 2025 · Databases

Debunking MySQL VARCHAR Myths: Why 255 Isn’t the Magic Number

This article examines common misconceptions about MySQL VARCHAR—why 255 was historically used, the real maximum length, performance differences between short and long definitions, character‑set impacts on storage, and why aligning sizes to powers of two offers no real benefit.

character encodingmysqlperformance
0 likes · 13 min read
Debunking MySQL VARCHAR Myths: Why 255 Isn’t the Magic Number
Aikesheng Open Source Community
Aikesheng Open Source Community
May 13, 2025 · Databases

Visualizing MySQL Execution Plans with Flame Graphs

This article explains how to use Flame Graphs to visualize MySQL execution plans, discusses the limitations of traditional EXPLAIN output, introduces the EXPLAIN ANALYZE feature in MySQL 8.0, provides sample SQL and command‑line usage, and shows how the visual tool helps quickly identify performance bottlenecks.

Database OptimizationEXPLAIN ANALYZESQL Performance
0 likes · 11 min read
Visualizing MySQL Execution Plans with Flame Graphs
php Courses
php Courses
May 13, 2025 · Backend Development

Implementing Logistics Tracking and Delivery Management in PHP for E-commerce

This article provides a step‑by‑step PHP tutorial for building logistics tracking and delivery management features in an e‑commerce system, covering database schema design, code for inserting, updating, and querying tracking and delivery records, and explaining how these functions improve operational efficiency.

Delivery ManagementLogistics TrackingPHP
0 likes · 5 min read
Implementing Logistics Tracking and Delivery Management in PHP for E-commerce
Java Tech Enthusiast
Java Tech Enthusiast
May 13, 2025 · Big Data

Using Alibaba DataX 3.0 for MySQL Data Synchronization: Installation, Configuration, and Incremental Sync

This article introduces Alibaba DataX 3.0, explains its architecture and role‑based design, walks through Linux installation, JDK setup, MySQL preparation, and provides step‑by‑step examples of full‑load and incremental data synchronization between two MySQL instances using JSON job configurations and command‑line execution.

DataXETLIncremental Sync
0 likes · 14 min read
Using Alibaba DataX 3.0 for MySQL Data Synchronization: Installation, Configuration, and Incremental Sync
macrozheng
macrozheng
May 12, 2025 · Big Data

Master DataX: Efficient Data Synchronization for Massive MySQL Datasets

Learn how to overcome inaccurate reporting and cross-database challenges by using Alibaba’s open-source DataX tool to efficiently synchronize massive MySQL datasets, covering its architecture, job scheduling, installation, configuration, full- and incremental sync, and practical command-line examples.

Big DataDataXETL
0 likes · 15 min read
Master DataX: Efficient Data Synchronization for Massive MySQL Datasets
Java Captain
Java Captain
May 12, 2025 · Databases

Comprehensive Guide to Installing, Configuring, and Managing MySQL on CentOS Linux

This tutorial walks through preparing the environment, installing and uninstalling MySQL on CentOS 7, configuring firewalls, setting up remote access, handling character sets, adjusting security policies, managing SQL modes, and best practices for case sensitivity and version‑specific password policies.

Character SetConfigurationInstallation
0 likes · 30 min read
Comprehensive Guide to Installing, Configuring, and Managing MySQL on CentOS Linux
Su San Talks Tech
Su San Talks Tech
May 12, 2025 · Databases

How to Diagnose and Fix Slow MySQL Queries: A Surgeon’s Guide

This article walks you through diagnosing slow MySQL queries using EXPLAIN, fixing index issues, reordering joins, forcing optimal indexes, monitoring index usage, and applying systematic governance such as SQL sanitization and sharding to dramatically improve performance.

SQL Optimizationexplainmysql
0 likes · 9 min read
How to Diagnose and Fix Slow MySQL Queries: A Surgeon’s Guide
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
May 12, 2025 · Backend Development

How to Use SpringBoot, Dubbo, and Seata to Solve Distributed Transaction Data Inconsistency

This article walks through integrating SpringBoot, Dubbo, and Seata to implement reliable distributed transactions, covering project setup, Maven dependencies, service definitions, Nacos registration, configuration files, testing normal commits and rollbacks, and troubleshooting version incompatibilities.

Distributed TransactionsDubboMicroservices
0 likes · 17 min read
How to Use SpringBoot, Dubbo, and Seata to Solve Distributed Transaction Data Inconsistency
Top Architecture Tech Stack
Top Architecture Tech Stack
May 10, 2025 · Databases

MySQL Query Optimization Guidelines and Best Practices

This article presents a comprehensive set of MySQL optimization techniques, covering the avoidance of SELECT *, proper use of specific fields, index-friendly query patterns, join strategies, handling of NULL and default values, efficient use of UNION, batch inserts, and numerous other performance‑enhancing tips for database developers.

Database TuningSQL Optimizationindexes
0 likes · 17 min read
MySQL Query Optimization Guidelines and Best Practices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 10, 2025 · Databases

10 Powerful SQL Optimization Techniques to Boost Query Performance

This article presents ten practical SQL optimization techniques—including replacing DISTINCT with GROUP BY, using UNION ALL instead of OR, avoiding functions on indexed columns, leveraging EXISTS over IN, creating covering indexes, partitioning large tables, and more—each illustrated with before-and-after code examples to dramatically improve query speed and reduce server load.

Query Tuningmysqlperformance optimization
0 likes · 10 min read
10 Powerful SQL Optimization Techniques to Boost Query Performance
Code Ape Tech Column
Code Ape Tech Column
May 9, 2025 · Databases

Efficient Strategies for Importing One Billion Records into MySQL

This article explains how to import 1 billion 1 KB log records stored in HDFS or S3 into MySQL by analyzing single‑table limits, using batch inserts, choosing storage engines, sharding, optimizing file‑reading methods, and coordinating distributed tasks with Redis, Redisson, and Zookeeper to ensure ordered, reliable, and high‑throughput data loading.

Batch InsertDistributed SystemsKafka
0 likes · 19 min read
Efficient Strategies for Importing One Billion Records into MySQL
php Courses
php Courses
May 8, 2025 · Backend Development

Using mysqli_fetch_assoc to Retrieve Query Results in PHP

This tutorial demonstrates how to connect to a MySQL database in PHP using mysqli_connect, execute queries with mysqli_query, and retrieve each row as an associative array using mysqli_fetch_assoc, providing complete code examples and a full script for efficient backend data handling.

MySQLiPHPdatabase
0 likes · 4 min read
Using mysqli_fetch_assoc to Retrieve Query Results in PHP
Top Architect
Top Architect
May 7, 2025 · Big Data

Using DataX for Efficient MySQL Data Synchronization

This article provides a comprehensive guide on using Alibaba's open‑source DataX tool for efficient offline synchronization between heterogeneous databases such as MySQL, covering its architecture, installation on Linux, job configuration, full‑ and incremental data transfer, and practical code examples.

Big DataDataXETL
0 likes · 18 min read
Using DataX for Efficient MySQL Data Synchronization
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
May 7, 2025 · Backend Development

How Seata Guarantees Zero-Error Cross-Database Transactions: Theory and Full Demo

This article explains Seata's distributed transaction architecture, details the AT transaction mode, walks through single‑node and cluster deployments, and provides complete code examples for stock and order services that demonstrate both successful commits and automatic rollbacks in a microservice environment.

AT ModeDistributed TransactionsMicroservices
0 likes · 25 min read
How Seata Guarantees Zero-Error Cross-Database Transactions: Theory and Full Demo
Liangxu Linux
Liangxu Linux
May 6, 2025 · Information Security

How to Mitigate MySQL Vulnerabilities with iptables Rules

This guide explains how to use Linux iptables to block or allow traffic to MySQL's port 3306, providing a practical workaround for several high‑severity CVE‑listed MySQL vulnerabilities that cannot be patched by upgrading in production environments.

CVEiptablesmysql
0 likes · 6 min read
How to Mitigate MySQL Vulnerabilities with iptables Rules
Aikesheng Open Source Community
Aikesheng Open Source Community
May 6, 2025 · Databases

Using GDB to Adjust MySQL max_connections Without Restart

This article explains how to troubleshoot and resolve the MySQL "Too many connections" error by using GDB to modify the max_connections parameter on a running MySQL 5.7 instance without restarting, including step‑by‑step commands, sysbench load testing, and two practical methods.

Database TuningSysbenchgdb
0 likes · 9 min read
Using GDB to Adjust MySQL max_connections Without Restart
Su San Talks Tech
Su San Talks Tech
May 5, 2025 · Big Data

6 Proven Ways to Sync MySQL Data to Elasticsearch – Choose the Right Strategy

This article compares six mainstream MySQL‑to‑Elasticsearch synchronization methods—synchronous double‑write, asynchronous MQ, Logstash polling, Canal binlog listening, DataX batch sync, and Flink streaming—detailing scenarios, code samples, advantages, drawbacks, and practical selection guidance for developers.

CanalElasticsearchFlink
0 likes · 9 min read
6 Proven Ways to Sync MySQL Data to Elasticsearch – Choose the Right Strategy
Java Captain
Java Captain
May 4, 2025 · Databases

Evolution of MySQL, Rise of NoSQL, and In‑Depth Redis Data Types and Usage

This article traces MySQL’s architectural evolution from single‑node to sharded clusters, explains the fundamentals and classifications of NoSQL databases, and provides a comprehensive guide to Redis—including installation, memory management, and detailed usage of its five core data types with best‑practice considerations.

Data StructuresNoSQLdatabase
0 likes · 26 min read
Evolution of MySQL, Rise of NoSQL, and In‑Depth Redis Data Types and Usage
Java Captain
Java Captain
May 2, 2025 · Databases

Implementing Dynamic MySQL Master‑Slave Switching in SpringBoot Using AOP and Custom Annotations

This article demonstrates how to use SpringBoot 3.0.4 with AOP and a custom @DataSource annotation to dynamically switch between MySQL master and slave databases, ensuring high availability by automatically falling back to the master when a slave fails, and provides configuration and code examples for multiple data sources.

Database SwitchingSpringBootaop
0 likes · 14 min read
Implementing Dynamic MySQL Master‑Slave Switching in SpringBoot Using AOP and Custom Annotations
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 2, 2025 · Databases

Demonstrating MySQL Deadlock with a Practical Example

This article explains MySQL deadlocks by creating a test table, running two concurrent transactions—one using SLEEP to hold a lock and another attempting the same resource—to reproduce a deadlock error, and discusses how this approach aids debugging and understanding of transaction conflicts.

databasedeadlockmysql
0 likes · 4 min read
Demonstrating MySQL Deadlock with a Practical Example
Java Backend Full-Stack
Java Backend Full-Stack
May 1, 2025 · Databases

Common Interview Question: When Does a MySQL Index Fail? Hands‑On Demo

This article walks through a mini‑project that creates a student table, adds indexes, populates it with 100 k rows, and then demonstrates six concrete scenarios—such as leading wildcards, arithmetic on indexed columns, functions, type mismatches, composite‑index misuse, and encoding differences—that cause MySQL indexes to become ineffective, showing the EXPLAIN output for each case.

Database Performanceexplainindex
0 likes · 8 min read
Common Interview Question: When Does a MySQL Index Fail? Hands‑On Demo
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 1, 2025 · Databases

Common Scenarios Where MySQL Indexes Fail

This article explains various situations that cause MySQL indexes to become ineffective—such as leading wildcard LIKE queries, calculations on indexed columns, use of functions, data type mismatches, improper use of composite indexes, and character set differences—providing example SQL, execution plans, and practical testing steps.

Database Optimizationindexmysql
0 likes · 7 min read
Common Scenarios Where MySQL Indexes Fail
Cognitive Technology Team
Cognitive Technology Team
May 1, 2025 · Databases

MySQL Optimization Strategies for Read‑Heavy and Write‑Heavy Scenarios

This article systematically examines MySQL optimization techniques for both read‑many/write‑few and write‑many/read‑few business scenarios, covering architecture design, caching, sharding, asynchronous processing, monitoring, and emerging NewSQL/HTAP solutions to achieve high performance, consistency, and scalability.

Database Optimizationcachingmysql
0 likes · 9 min read
MySQL Optimization Strategies for Read‑Heavy and Write‑Heavy Scenarios
dbaplus Community
dbaplus Community
Apr 30, 2025 · Databases

Top 10 MySQL Errors and How to Fix Them: Practical Solutions for DBAs

This article compiles the ten most common MySQL error scenarios—from connection limits and replication conflicts to installation failures, password resets, truncate side‑effects, configuration pitfalls, charset issues, binlog formats, timeout problems, and file‑handle limits—offering clear diagnostic steps and concrete commands to resolve each case.

Database ErrorsReplicationmysql
0 likes · 16 min read
Top 10 MySQL Errors and How to Fix Them: Practical Solutions for DBAs
Architect
Architect
Apr 29, 2025 · Databases

Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration

A real‑world MySQL data‑migration case study shows how using INSERT INTO SELECT without proper indexing caused a full table scan, OOM errors, and data loss, and explains how to avoid the pitfall by adding appropriate indexes and understanding transaction locking.

Data MigrationDatabase PerformanceFull Table Scan
0 likes · 8 min read
Lessons Learned from Misusing INSERT INTO SELECT in MySQL Data Migration
Top Architect
Top Architect
Apr 28, 2025 · Backend Development

Replacing MyBatis with MyBatis-Plus: Debugging LocalDateTime Conversion Errors and MySQL Connector Upgrades

The article walks through migrating an old MySQL‑5.7 project from MyBatis 3.5.0 to MyBatis‑Plus 3.1.1, diagnosing a LocalDateTime conversion exception caused by an outdated mysql‑connector‑java driver, and resolves it by upgrading the driver version, highlighting the need for careful component compatibility checks.

LocalDateTimeORMbackend-development
0 likes · 10 min read
Replacing MyBatis with MyBatis-Plus: Debugging LocalDateTime Conversion Errors and MySQL Connector Upgrades
php Courses
php Courses
Apr 28, 2025 · Databases

Python Database Programming: SQLite and MySQL Basics

This tutorial explains how to use Python's sqlite3 module and MySQL connectors to perform essential database operations such as connecting, creating tables, inserting, querying, updating, deleting records, and managing transactions for both SQLite and MySQL.

SQLitemysqlsql
0 likes · 7 min read
Python Database Programming: SQLite and MySQL Basics
Wukong Talks Architecture
Wukong Talks Architecture
Apr 28, 2025 · Databases

Comprehensive Guide to Popular Database Management Tools

This article provides an extensive overview of widely used database management tools across various platforms—including DBeaver, Navicat, PL/SQL Developer, Toad for Oracle, SQLyog, MySQL Workbench, HeidiSQL, Percona Toolkit, pgAdmin, SQLite Expert, and SSMS—detailing their supported databases, core features, licensing, download links, and related learning resources.

DBeaverDatabase ToolsNavicat
0 likes · 19 min read
Comprehensive Guide to Popular Database Management Tools
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Apr 27, 2025 · Databases

Why MySQL Memory Stays High and How to Optimize It

This article explains MySQL's memory architecture, why memory usage often stays high after spikes, and provides practical steps—including connection checks, slow query analysis, workload scaling, and switching to jemalloc—to diagnose and reduce memory consumption on 360's internal cloud platform.

Connection ManagementDatabase PerformanceMemory Optimization
0 likes · 7 min read
Why MySQL Memory Stays High and How to Optimize It
转转QA
转转QA
Apr 27, 2025 · Databases

Design and Implementation of a General Data Synchronization Solution for Online and Offline Databases

This article analyzes the pain points of inconsistent online‑offline configurations, proposes three synchronization schemes—including timed batch sync, automatic real‑time binlog‑MQ sync, and manual selective sync—compares their applicability, risks and performance, and presents practical deployment results across multiple projects using MySQL and TiDB.

BinlogTiDBdata synchronization
0 likes · 14 min read
Design and Implementation of a General Data Synchronization Solution for Online and Offline Databases
Architect's Guide
Architect's Guide
Apr 25, 2025 · Databases

Solutions for MySQL Auto Increment ID Exhaustion

This article discusses the problem of MySQL auto‑increment ID exhaustion and presents six practical solutions—including changing column type to BIGINT, using UUIDs, segmenting ID generation, composite keys, adjusting auto‑increment steps, and database sharding—to ensure scalability and uniqueness.

Database designID Exhaustionauto_increment
0 likes · 6 min read
Solutions for MySQL Auto Increment ID Exhaustion
21CTO
21CTO
Apr 24, 2025 · Databases

What’s New in MySQL 9.3? Backup, JavaScript Support, and Group Replication Explained

MySQL 9.3 introduces powerful backup enhancements, JavaScript stored‑procedure support, advanced query optimization, and a new Group Replication primary‑election feature, all aimed at improving reliability, performance, and developer flexibility, making it a compelling upgrade for enterprises and developers alike.

Database BackupGroup ReplicationJavaScript Stored Procedures
0 likes · 3 min read
What’s New in MySQL 9.3? Backup, JavaScript Support, and Group Replication Explained
Top Architect
Top Architect
Apr 24, 2025 · Databases

Data Synchronization Strategies Between MySQL and Elasticsearch

This article examines why MySQL alone struggles with large‑scale, complex queries, introduces Elasticsearch as a complementary search engine, and compares several synchronization approaches—including synchronous double‑write, asynchronous double‑write, Logstash pipelines, binlog streaming, Canal, and Alibaba Cloud DTS—detailing their implementations, advantages, disadvantages, and typical use cases.

Elasticsearchbackend-developmentdata synchronization
0 likes · 16 min read
Data Synchronization Strategies Between MySQL and Elasticsearch
Senior Tony
Senior Tony
Apr 24, 2025 · Databases

How to Effectively Monitor and Optimize Slow SQL in Real Projects

The article explains a systematic interview‑ready approach to handling slow SQL: collect queries via Druid, MySQL slow‑query log or cloud exporters, prioritize by total execution time, analyze EXPLAIN output (type, key, rows, filtered, extra), and apply index, FORCE INDEX, join‑order, or off‑loading techniques for optimization.

indexesmysqloptimization
0 likes · 9 min read
How to Effectively Monitor and Optimize Slow SQL in Real Projects
php Courses
php Courses
Apr 24, 2025 · Backend Development

Step-by-Step Guide to Generating Dynamic Web Pages with PHP

This article explains how to set up a PHP development environment, create .php files, embed PHP within HTML, handle form input, and interact with a MySQL database to produce dynamic web pages, providing clear code examples for each step.

Dynamic PagesTutorialWeb Development
0 likes · 5 min read
Step-by-Step Guide to Generating Dynamic Web Pages with PHP
Java Tech Enthusiast
Java Tech Enthusiast
Apr 23, 2025 · Databases

Choosing the Right Date/Time Storage in MySQL and PostgreSQL

When storing dates in MySQL or PostgreSQL, avoid VARCHAR fields and select between DATETIME (no time‑zone, larger range) and TIMESTAMP (UTC conversion, smaller range) based on whether automatic time‑zone handling and the 2038 limit suit your application, with Unix timestamps as a high‑performance alternative.

Timezonedatabasedatetime
0 likes · 11 min read
Choosing the Right Date/Time Storage in MySQL and PostgreSQL
Zhuanzhuan Tech
Zhuanzhuan Tech
Apr 23, 2025 · Databases

Quick 3‑Step Guide to Locate and Analyze MySQL InnoDB Deadlocks

This article explains how to find the MySQL deadlock log, parse its contents to determine the time, order, and affected rows, identify the lock types and root cause, and provides extended examples of special locking scenarios, all illustrated with real‑world SQL and code snippets.

InnoDBdatabasedeadlock
0 likes · 15 min read
Quick 3‑Step Guide to Locate and Analyze MySQL InnoDB Deadlocks
Architect's Guide
Architect's Guide
Apr 23, 2025 · Databases

Understanding MySQL Indexes: Types, B+Tree Structure, and Clustered vs. Non‑Clustered Indexes

This article explains MySQL indexes, their purpose and working principle, compares primary, ordinary, composite and full‑text indexes, describes the B+Tree storage structure versus B‑Tree, and clarifies the differences between clustered and non‑clustered (auxiliary) indexes along with their advantages and drawbacks.

B+TreeClustered Indexmysql
0 likes · 10 min read
Understanding MySQL Indexes: Types, B+Tree Structure, and Clustered vs. Non‑Clustered Indexes
Architecture Digest
Architecture Digest
Apr 22, 2025 · Databases

Understanding MySQL INT Display Width and ZEROFILL

This article explains why the number in MySQL's int(N) definition does not limit the column's numeric range, demonstrates that int(1) can store the full 4‑byte unsigned range, and shows how the ZEROFILL attribute adds zero‑padding for display purposes.

ZEROFILLdatabasedisplay width
0 likes · 5 min read
Understanding MySQL INT Display Width and ZEROFILL
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 22, 2025 · Databases

Implementing a MySQL Configuration Comparison Script: Key Considerations and Common Pitfalls

This article explains how to build a MySQL configuration comparison script by retrieving runtime variable values, parsing my.cnf and mysqld-auto.cnf files, handling formatting and case issues, and accurately comparing values while addressing typical challenges such as unit conversion, boolean representation, and legacy variable names.

Database AdministrationShellawk
0 likes · 8 min read
Implementing a MySQL Configuration Comparison Script: Key Considerations and Common Pitfalls
IT Xianyu
IT Xianyu
Apr 19, 2025 · Databases

Step-by-Step Guide to Setting Up MySQL 5.7 Master‑Slave Replication

This tutorial walks through preparing the Linux environment, installing MySQL 5.7, configuring master and slave servers, creating replication users, verifying synchronization, troubleshooting common issues, and applying advanced options such as GTID and semi‑synchronous replication, all with complete command examples.

ConfigurationGTIDLinux
0 likes · 10 min read
Step-by-Step Guide to Setting Up MySQL 5.7 Master‑Slave Replication
Top Architect
Top Architect
Apr 18, 2025 · Backend Development

Optimizing XML-to-MySQL Import: Reducing Execution Time from 300 s to 4 s with Batch Processing and Multithreading

This article details how to dramatically speed up importing over 60,000 XML records into MySQL by profiling the original 300‑second implementation, enabling JDBC batch writes, configuring MySQL rewriteBatchedStatements, and applying a Disruptor‑based multithreaded pipeline, ultimately achieving sub‑5‑second runtimes with modest memory usage.

BatchProcessingDisruptorPerformanceOptimization
0 likes · 15 min read
Optimizing XML-to-MySQL Import: Reducing Execution Time from 300 s to 4 s with Batch Processing and Multithreading
Data Thinking Notes
Data Thinking Notes
Apr 17, 2025 · Artificial Intelligence

How Dify Accelerates Generative AI App Development with Low‑Code and Modular Design

Dify is an open‑source LLM application platform that blends BaaS and LLMOps, offering low‑code development, modular components, extensive model support, and advanced retrieval features, while also detailing its current limitations and recent enhancements such as MySQL integration and Elasticsearch‑based RAG capabilities.

AIElasticsearchLLM
0 likes · 7 min read
How Dify Accelerates Generative AI App Development with Low‑Code and Modular Design
IT Services Circle
IT Services Circle
Apr 17, 2025 · Backend Development

McDonald's Java Backend Interview Experience and Technical Q&A

This article shares a candidate's interview experience at McDonald's China Technology R&D Center, detailing salary expectations, work schedule, and an extensive technical Q&A covering IoC/DI, MyBatis, JVM memory and garbage‑collection algorithms, MySQL storage engines, concurrency, locking, RPC, HTTPS, Docker/Kubernetes commands, and Git workflows, while also including some promotional material.

BackendDockerKubernetes
0 likes · 22 min read
McDonald's Java Backend Interview Experience and Technical Q&A