Databases
52 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 1.MySQLhistorical
This page collects MySQL notes on installation, data types, architecture, replication, troubleshooting, and load testing.
- 1.1 MySQL explainhistorical
EXPLAIN shows how MySQL executes SQL, including table access order and access methods, helping analyze queries and identify optimization opportunities.
- 1.2 MySQL Primary-Replica Replicationhistorical
MySQL leader-follower replication synchronizes data from the primary to replicas. These notes examine usage and execution through read-heavy scenarios.
- 1.3 MySQL SQL Tuninghistorical
These notes record SQL-tuning scenarios, starting with data volume and concurrency and examining changes such as limiting query ranges.
- 1.4 MySQL Installation and Configurationhistorical
These notes record MySQL installation and configuration, including replication identifiers, error logs, and checks after startup.
- 1.5 MySQL Query Optimizerhistorical
A SQL statement may have several execution plans. The MySQL optimizer uses query trees and cost estimates to choose a suitable plan.
- 1.6 MySQL Storage Engineshistorical
MySQL storage engines manage data storage and interact with the underlying file system when executing SQL operations.
- 1.7 MySQL Lockshistorical
MySQL lock structures record their transaction and wait state. These notes use those fields to examine how locks relate to transactions and data.
- 1.8 MySQL Indexeshistorical
MySQL Indexes: An index is a structure that sorts the values of one or more columns in a database table and is a data structure (B+Tree) that helps MySQL obtain data efficiently.
- 1.9 MySQL Index Implementationhistorical
MySQL Index Implementation: In the InnoDB storage engine, each index corresponds to a B+ tree.