Skip to main content
Albero Academy
All tutorials

MySQL tutorials

The popular open-source database — schemas & types, CRUD, keys & joins, indexes, functions and transactions.

Chapters
16
Total reading
4h 4m
Level
Beginner to Advanced

Chapters

  1. Chapter 1

    MySQL Fundamentals

    What MySQL is, connecting to a server, creating databases and tables, and choosing the right data types.
    14 min readStart
  2. Chapter 2

    CRUD & Querying

    Insert, read, update and delete rows, then filter, sort, paginate and group results — the daily bread of database work.
    15 min readStart
  3. Chapter 3

    Keys, Relationships & Joins

    Model related data with primary and foreign keys, enforce integrity, and combine tables with the join types.
    16 min readStart
  4. Chapter 4

    Indexes, Functions & Performance

    Speed up queries with indexes, read the query plan with EXPLAIN, use built-in functions, and keep data safe with transactions.
    16 min readStart
  5. Chapter 5

    Advanced Joins & Set Operations

    Join a table to itself, chain many tables, find non-matches, and combine result sets with UNION.
    15 min readStart
  6. Chapter 6

    Subqueries & CTEs

    Nest a query inside another, correlate it to the outer row, and refactor complex logic into readable common table expressions.
    16 min readStart
  7. Chapter 7

    Window Functions

    Rank rows, compute running totals, and compare each row to its neighbours — without collapsing the result like GROUP BY does.
    16 min readStart
  8. Chapter 8

    Views & Stored Routines

    Save queries as reusable views, and push logic into the database with stored procedures and functions.
    15 min readStart
  9. Chapter 9

    Triggers & Scheduled Events

    React automatically to data changes with triggers, and run recurring jobs inside the database with the event scheduler.
    14 min readStart
  10. Chapter 10

    Advanced Data Types & JSON

    Store semi-structured data in JSON columns, use ENUM/SET wisely, and compute columns automatically with generated columns.
    15 min readStart
  11. Chapter 11

    Constraints & Data Integrity

    Let the database guard your data — CHECK constraints, cascading foreign keys, composite and unique keys, and why integrity belongs in the schema.
    14 min readStart
  12. Chapter 12

    Transactions, Isolation & Locking

    Go beyond COMMIT/ROLLBACK — ACID guarantees, isolation levels, the anomalies they prevent, and how to avoid deadlocks.
    16 min readStart
  13. Chapter 13

    Query Optimization Deep Dive

    Make slow queries fast — read EXPLAIN properly, design indexes that actually get used, and find the queries worth fixing.
    16 min readStart
  14. Chapter 14

    Security & User Management

    Create users, grant least-privilege access with roles, and defend against SQL injection — the non-negotiables of running a database.
    15 min readStart
  15. Chapter 15

    Backup, Restore & Replication

    Protect data against loss — logical and physical backups, point-in-time recovery with binary logs, and replication for scale and failover.
    15 min readStart
  16. Chapter 16

    Database Design & Best Practices

    Bring it together — model a schema from requirements, normalise (and when to denormalise), and follow the habits of production databases.
    16 min readStart