MySQL / MariaDB
24 articles in this section
This section is about running MySQL and MariaDB on a real server: where to start tuning my.cnf for the memory you actually have, how indexes work and why a query without one falls back to a full table scan, and what the difference between InnoDB and MyISAM means in practice, not just in theory.
Backups get separate treatment: mysqldump for smaller databases, Percona XtraBackup for a hot copy that doesn't stop the server, point-in-time recovery from the binary log, and moving data when migrating from MySQL to MariaDB or upgrading from 5.7 to 8.0.
There's plenty on diagnostics too: the slow query log and EXPLAIN for slow queries, reading InnoDB deadlocks, the Too many connections error and connection leaks, and a growing ibdata1 file with ways to free up disk space.
- Tuning my.cnf, indexes and Performance Schema
- Backups: mysqldump, XtraBackup, binlog point-in-time recovery
- Replication: Master-Slave, GTID and Galera Cluster
- Diagnostics: slow queries, deadlocks, connection limits