The SQLNirvana blog
Articles about mysql
Tuning, upgrades, vacuum, indexes and security, written for teams that look after their own databases.
Monitoring Amazon RDS for MySQL and PostgreSQL: what CloudWatch tells you and what it doesn't
CloudWatch shows how the instance is doing. It doesn't tell you why. How to combine instance metrics with database-level checks, and how parameter groups work.
29 Sep 2026 · 2 min readMySQL security checklist: 10 things to check today
Ten quick checks that close the most common holes in MySQL servers: accounts, network exposure, TLS and a few risky defaults.
26 Sep 2026 · 2 min readMySQL deadlocks: how to read them and how to prevent them
InnoDB resolves deadlocks automatically by rolling one transaction back. Here's how to read the deadlock report and the changes that make them rare.
23 Sep 2026 · 2 min readWho is blocking whom? Finding lock waits in MySQL and PostgreSQL
When queries pile up waiting for each other, here's how to find the session holding the lock, see what it's doing, and decide whether to end it.
20 Sep 2026 · 2 min readAUTO_INCREMENT and sequences running out: spot it before inserts fail
An INT primary key tops out at about 2.1 billion. When it runs out, every insert fails. How to check how close you are in MySQL and PostgreSQL, and how to fix it.
05 Sep 2026 · 3 min readDuplicate and redundant indexes: find them and drop them safely
Every extra index slows down writes and uses memory. Here's how to find the ones that do nothing in MySQL and PostgreSQL, and how to remove them without risk.
02 Sep 2026 · 2 min readFind your slowest MySQL queries with performance_schema
You don't need to turn on the slow log to find the queries that cost you the most. performance_schema already counts them: here's how to read it.
30 Aug 2026 · 2 min readHow to size innodb_buffer_pool_size
The single most important MySQL setting: how much memory to give it, how to tell whether it's big enough, and how to change it without a restart.
27 Aug 2026 · 2 min readMySQL 8.0 to 8.4 upgrade checklist
Accounts, removed variables, changed defaults, replication syntax and a step-by-step plan: everything to check before moving a MySQL 8.0 server to 8.4 LTS.
24 Aug 2026 · 3 min readMySQL 8.0 has reached end of life: what it means and what to do next
Oracle's support for MySQL 8.0 ended in April 2026. Here is what that means for your servers, your options, and a sensible order to do things in.
21 Aug 2026 · 3 min read