Code24Lab
Databases & SQL Advanced

MySQL Mastery: Performance, Replication Basics & Administration

Diagnose a slow MySQL 8 database like a professional: read slow logs and EXPLAIN, size B-trees and indexes, reason about locks, MVCC, partitions, replication lag, backups and server memory, with every answer checked as you go.

21 lessons 21 labs Certificate

  • One-time payment
  • Instant access right after payment
  • Secure checkout with Stripe

About this course

MySQL Mastery is an advanced, hands-on course for developers and database administrators who need to make a slow MySQL 8 database fast and keep it healthy. Working on a fictional web shop, you turn slow query log entries into a digest, read EXPLAIN plans and key_len, calculate B+tree heights, index selectivity and the real cost of row lookups and deep OFFSET pagination. You then reason about filesorts, join order, partition pruning, the InnoDB buffer pool, next-key locks, MVCC isolation levels and deadlocks, model replication lag with GTIDs, plan a point-in-time recovery and size server memory. Every answer is checked instantly, and the first lesson is free.

Lessons

  1. The Slow Query Log: Find Where the Time GoesLabFree
  2. EXPLAIN: rows, filtered and the Real Work of a JoinLab Locked
  3. Access Types: From const to ALLLab Locked
  4. How a B+Tree Index Finds a RowLab Locked
  5. Cardinality, Selectivity and SkewLab Locked
  6. Composite Indexes and key_lenLab Locked
  7. The Leftmost-Prefix Rule in PracticeLab Locked
  8. Covering Indexes and the Cost of Row LookupsLab Locked
  9. Primary Key Choice and Index SizeLab Locked
  10. ORDER BY, LIMIT and Deep PaginationLab Locked
  11. Filesort, Temporary Tables and Sort BuffersLab Locked
  12. Join Order, Nested Loops and Hash JoinsLab Locked
  13. Partitioning: Pruning and Its LimitsLab Locked
  14. InnoDB Buffer Pool: Hit Ratio and SizingLab Locked
  15. Row Locks, Gap Locks and Next-Key LocksLab Locked
  16. MVCC and Isolation Levels: Who Sees WhatLab Locked
  17. Lock Waits and DeadlocksLab Locked
  18. Replication Basics: Binlog, GTIDs and LagLab Locked
  19. Backups and Point-in-Time RecoveryLab Locked
  20. Server Memory and Connection LimitsLab Locked
  21. Capstone: Triage a Slow Production DatabaseLab Locked