# MySQL and MariaDB tuning

> Guides MySQL and MariaDB schema, indexes, EXPLAIN plans and replication, so your database runs smoothly.

- Page: https://youraiskill.com/skill/ericrisco-mysql
- What it does: Use when designing, querying, indexing or operating a MySQL or MariaDB database and engine-specific behaviour matters — schema and type choices, index design, reading EXPLAIN, online schema change, replication and replica lag, locking and InnoDB deadlocks, charset traps, and server config. NOT portable SELECT/JOIN/window-function craft (that is `sql`), NOT PostgreSQL engine behaviour like VACUUM or JSONB (that is `postgresdb`), NOT the PlanetScale/Vitess branch-and-deploy workflow (that is `planetscale`).
- Niches: backend
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions plus scripts (8 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
