This document contains a curated list of official documentation, engineering blogs, and expert deep-dives for MySQL, MariaDB, and Percona Server. It serves as a solid baseline for all database performance tuning, security hardening, and SQL modeling practices implemented in MySQLTuner-perl.
MySQLTuner implements standardized sizing algorithms to evaluate memory allocations and risk profiles:
Global buffers are allocated once at server startup (or dynamically resized) and shared among all client sessions:
Per-thread buffers are allocated individually for each connected client whenever a query requires sorting, joins, or table scans:
calculate_per_thread_buffers, $\text{tmp_table_size}$ evaluates to $\min(\text{tmp_table_size}, \text{max_heap_table_size})$ when both are configured).
-
Maximum Possible Memory Allocation:
$$\text{Max Possible Memory} = \text{Global Buffers} + (\text{max_connections} \times \text{Per-Thread Memory})$$ -
Peak Realized Memory (Historical Peak):
$$\text{Peak Memory} = \text{Global Buffers} + (\text{Max_used_connections} \times \text{Per-Thread Memory})$$
-
Physical RAM Utilization:
$$\text{RAM Usage Ratio} = \frac{\text{Max Possible Memory}}{\text{Physical RAM}} \times 100$$ - Safe:
$\le 85%$ on dedicated servers ($\le 60%$ on shared/containerized hosts). - Risk (OOM Trigger):
$> 90%$ triggers immediate warning.
- Safe:
-
Buffer Pool Efficiency:
$$\text{Hit Rate} = \left(1 - \frac{\text{Innodb_buffer_pool_reads}}{\text{Innodb_buffer_pool_read_requests}}\right) \times 100$$ - Target:
$\ge 99%$ in OLTP workloads.
- Target:
- MySQL: Memory Usage Tuning - Understanding global vs. per-thread buffers.
- MySQL: How MySQL Uses Memory - Detailed breakdown of join buffers, sort buffers, and thread caches.
- MySQL: Thread Cache Tuning - Optimizing connection management and thread reuse.
- MariaDB: Connection & Thread Cache KB - Thread pooling and system variables.
- MySQL: Table Cache Configuration - Tuning
table_open_cacheandtable_definition_cache. - MySQL: How MySQL Opens and Closes Tables - Diagnostic details for file descriptor exhaustion.
- MariaDB: Table Design and Performance KB - Optimizing file usage.
- MySQL: Internal Temporary Table Use - Memory vs. disk tmp tables (
tmp_table_size,max_heap_table_size). - MySQL: Performance Schema Startup Configuration - Enabling wait events and query statistics.
- MariaDB: Memory Storage Engine KB - Dynamic memory allocations.
- MySQL: InnoDB Performance & Tuning - Redo log capacity, flushing algorithms, buffer pools.
- MySQL: MyISAM Key Buffer Tuning - In-memory indexing configurations for MyISAM.
- MariaDB: Aria Storage Engine KB - Checking page caches and crash recovery.
- Percona: MyRocks Engine Documentation - Log-structured merge-tree (LSM) storage tuning.
- MySQL: Primary Key Optimization - Surrogate keys, UUID indexing, and index traversal efficiency.
- MySQL: JSON Datatype Indexing - Secondary indexing via virtual generated columns.
- MariaDB: Invisible Indexes KB - Hiding indexes to test query planner changes.
- MySQLTuner-perl Specification: Naming Conventions & Style Compatibility - Summary of naming styles.
- MySQL: Group Replication & InnoDB Cluster - Multi-primary setups and flow control.
- MySQL: GTID Replication Guide - Ensuring transactional consistency.
- MariaDB: Galera Cluster Flow Control KB - Managing queue sizes and replica threads.
- Percona: Percona XtraDB Cluster (PXC) Guide - High availability synchronous replication.
- MySQL: Authentication Plugins Reference - Cryptographic hashing algorithms and client validation.
- MySQL: caching_sha2_password Transition Guide - Migration from historical SHA-1 plugins.
- MariaDB: User Security & Authentication KB - Socket, Ed25519, and PARSEC plugin specifications.
- Percona: MySQL Security Hardening Checklist - Auditing privileges, anonymous accounts, and SSL/TLS cipher suites.
- MySQL Server Engineering Blog - Direct insights from the Oracle MySQL development team.
- MariaDB Foundation Blog - Technical developments and ecosystem announcements.
- Percona Performance Blog - Deep dives, benchmark reports, and operational troubleshooting guides.
- InnoDB Flushing Mechanisms Explained - Adaptive flushing under write pressure.
- Dynamic Redo Log Capacity (MySQL 8.0.30+) - Sizing redo log capacity without server restarts.
- Primary Key Optimization Guidelines - Real-world comparison of surrogate vs. composite PKs.
- Galera Advanced Performance Tuning - Troubleshooting brute-force aborts and certification delays.
- MySQL Shell AdminAPI Mastery - Managing sandbox and production InnoDB Clusters.
- MySQL Router Bootstrapping & Routing - High availability client redirection.
- lefred.be - Frédéric Descamps (MySQL Evangelist, InnoDB and backup performance).
- jfg-mysql.blogspot.com - Jean-François Gagné (Deep dives into replication lag and Performance Schema wait events).
- dasini.net - Olivier Dasini (MySQL certification roadmap and enterprise setups).