- 67lessons
- 5guided projects
- 8module checkpoints
- 1.0hours of video
What you'll learn
- Enforce invariants with keys, CHECK and foreign keys, and predict what cascades skip.
- Write reporting SQL with anti-joins, CTEs, window functions and JSON_TABLE.
- Demonstrate InnoDB isolation, SKIP LOCKED queues and deadlock retry with two sessions.
- Read EXPLAIN and design indexes from query shapes.
- Take, verify and restore backups with mysqldump and apply least-privilege accounts.
Skills you'll gain
- Server workspace
- clients
- Types
- schema
- Constraints
- relationships
- Joins
- reporting
- Transactions
- isolation
- Indexes
- query plans
- Backup
- restore lab
Tools you'll use
- MySQL Community server
- InnoDB
- mysqldump
- EXPLAIN / EXPLAIN ANALYZE
- MySQL driver
Details to know
- Certificate on completionIssued after your final project is reviewed
- 8 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 3 phases
Each phase ends with something you have built and checked.
- 01
Modules 1 to 3
Server, schema and constraints
Run a loopback MySQL server, choose types and evolve tables, then enforce invariants.
You build: Typed, constrained schema for a membership and booking domain.
- 02
Modules 4 to 5
Reporting and concurrency
Write reporting queries, then demonstrate transactions and isolation with two sessions.
You build: Reporting layer and a two-session concurrency lab notebook.
- 03
Modules 6 to 8
Plans, backup and project
Design indexes from plans, back up and restore with least privilege, and deliver the project.
You build: Plan evidence for five hot queries and a secured database with a proven restore.
Full curriculum
8 modules and 67 lessons, 36 to 63 hours of study
01Server workspace and clients8 lessons, 3 to 6 hours
Lessons
- Choosing a release track and recording the version
- Starting a disposable loopback-only server
- Connecting with the mysql client and reading the connection state
- Accounts, hosts and the authentication plugin
- Running repeatable scripts with the client
- Schemas, INFORMATION_SCHEMA and CHECK_CONSTRAINTS
- Reading and setting the SQL mode
- Confirming InnoDB as the table engine and what that implies
After this module you can
- Choose between an LTS and an Innovation MySQL series using the release-model page and record the running server's version with SQL.
- Start a throwaway MySQL server bound to loopback, find its port and data directory with SQL, and stop and discard it cleanly.
- Show that a table created without an ENGINE clause is an InnoDB table and name three consequences for foreign keys, locking and primary keys.
02Types and schema8 lessons, 3 to 6 hours
Lessons
- Integer ranges, UNSIGNED and exact DECIMAL for money
- CHAR, VARCHAR and strict-mode truncation
- Character sets and collations: utf8mb4 and comparison rules
- DATETIME versus TIMESTAMP and the session time zone
- AUTO_INCREMENT keys, gaps and LAST_INSERT_ID
- Generated columns: VIRTUAL, STORED and indexing
- The JSON column type: validation, normalization and extraction
- Changing a table: INSTANT, INPLACE and COPY
After this module you can
- Pick TINYINT through BIGINT and DECIMAL for given columns by stating the range or exactness fact that justifies each choice.
- Choose CHAR or VARCHAR for given columns, predict trailing-space behaviour, and predict what a too-long value does in strict and relaxed mode.
- Predict which ALTER TABLE operations support the INSTANT, INPLACE and COPY algorithms, and verify a prediction by requesting an algorithm explicitly.
03Constraints and relationships8 lessons, 3 to 6 hours
Lessons
- Primary keys and the InnoDB clustered index
- NOT NULL, DEFAULT and what strict mode rejects
- UNIQUE keys, multiple NULLs and uniqueness across columns
- CHECK constraints: enforced rules, NULL and naming
- Foreign keys and referential actions
- Cascade depth, disabled checks and triggers that do not fire
- BEFORE triggers with SIGNAL for rules CHECK cannot express
- Stored procedures and functions: parameters, security and DELIMITER
After this module you can
- Choose a primary key for a table and explain what InnoDB does when none is defined and why short keys keep secondary indexes small.
- Use NOT NULL and DEFAULT so a missing required value fails loudly, and predict when an omitted column gets its default.
- Create a stored procedure with IN and OUT parameters and a deterministic function, call them, and state who the routine runs as.
04Joins and reporting8 lessons, 3 to 6 hours
Lessons
- Anti-joins: LEFT JOIN ... IS NULL, NOT EXISTS and the NOT IN trap
- GROUP BY under ONLY_FULL_GROUP_BY and ANY_VALUE
- Common table expressions and recursive CTEs
- Window functions: ROW_NUMBER, RANK and DENSE_RANK per partition
- Window frames: running totals, peers and the default frame
- Idempotent upserts with INSERT ... ON DUPLICATE KEY UPDATE
- JSON_TABLE: turning a JSON array into rows
- Views as a reporting contract
After this module you can
- Find parent rows with no children three ways and predict why NOT IN returns nothing when the subquery produces a NULL.
- Write grouped queries that pass ONLY_FULL_GROUP_BY, explain functional dependence on a primary key, and use ANY_VALUE where a column is known to be constant per group.
- Create a view that exposes only selected columns and rows, and show that the view definition rather than the table carries the contract.
05Transactions and isolation9 lessons, 4 to 6 hours
Lessons
- Autocommit, transaction blocks and implicit commits
- REPEATABLE READ: one snapshot per transaction
- READ COMMITTED: a fresh snapshot per read and no gap locks
- Locking reads: FOR UPDATE, FOR SHARE and consistent reads that ignore locks
- Lost updates and the atomic UPDATE fix
- NOWAIT and SKIP LOCKED for queue-style claiming
- Deadlocks: reproduce, read the report and retry
- Seeing locks: performance_schema.data_locks
- SERIALIZABLE and the autocommit rule
After this module you can
- Group statements with START TRANSACTION, COMMIT and ROLLBACK, and predict which earlier changes survive when a DDL statement appears inside the block.
- Demonstrate with two sessions that plain SELECTs in a REPEATABLE READ transaction keep reading the snapshot of their first read.
- Show that SERIALIZABLE turns plain SELECTs into shared-lock reads when autocommit is off but not when it is on, and weigh the cost.
06Indexes and query plans10 lessons, 4 to 7 hours
Lessons
- Reading EXPLAIN: type, key, rows and Extra
- Adding a secondary index and proving it is used
- Composite indexes and column order
- Covering indexes and Using index
- Sargable predicates and functional indexes
- Descending indexes, ORDER BY and filesort
- Invisible indexes: testing a drop safely
- Prefix indexes on long strings
- EXPLAIN ANALYZE and FORMAT=TREE
- Optimizer hints as experiments, not fixes
After this module you can
- Run EXPLAIN on a single-table query and state from its columns how the table is accessed and how many rows MySQL estimates it must examine.
- Create a secondary index for an equality filter, confirm with EXPLAIN that the plan moves from ALL to an index access, and state that every secondary record also holds the primary key.
- Use INDEX, NO_INDEX and MAX_EXECUTION_TIME hints to test an alternative plan and explain why a hint is not a substitute for a good index.
07Backup and restore lab8 lessons, 3 to 6 hours
Lessons
- Logical backups with mysqldump
- Dump options: databases, routines, triggers, events and consistency
- Restoring into an empty server and verifying the result
- Binary log and point-in-time recovery
- Accounts and least-privilege grants
- Roles: grant once, activate on purpose
- Account hardening: expiry, lockout, TLS and resource limits
- The restore drill: timing, failure injection and a written result
After this module you can
- Take a logical dump of one schema with mysqldump, read what the file contains, and name what a logical backup is not suited for.
- Choose dump options so that routines, triggers and events are captured and so that InnoDB tables are dumped from one consistent view.
- Run a complete backup-destroy-restore-verify drill with a timer and a planted failure, and produce a written result with the recovery time.
08Application database project8 lessons, 3 to 6 hours
Lessons
- Specifying access patterns and invariants for the inventory service
- Versioned migrations with a schema_migrations table
- Deterministic seed data with a recursive CTE
- Parameterized access from code: placeholders, PREPARE and injection
- A concurrency-safe stock reservation operation with retry
- An append-only movement ledger and a reconciliation query
- Plan review for the hot path
- The constraint and concurrency test suite and the restore proof
After this module you can
- Turn a brief for a stock service into a numbered list of entities, access patterns and database-enforced invariants that later schema and index decisions must serve.
- Apply numbered migration files exactly once with a version table, and design each file so an interrupted run can be repeated.
- Write automated tests that prove each invariant is enforced by the database, including under two concurrent sessions, and finish with a backup, destroy and restore proof.
What you'll build
5 guided projects along the way, then a final project.
Typed, constrained schema for a membership and booking domain
after module 3Reporting layer over the schema
after module 4Two-session concurrency lab notebook
after module 5Plan evidence for five hot queries
after module 6Secured database with a proven restore
after module 7
Final project
Choose one: a warehouse inventory database, an event ticketing database or an equipment lending database.
What you submit
Repository with ordered migrations, seed generator, service layer with parameterized statements, tests, README and runbook; at least eight constraint tests and two concurrent tests; backup, restore and restart evidence.
How it's reviewed
Rubric on schema and constraints, queries and transactions, and indexes and plans, plus a live cold start, migrate, seed, test, backup, restore and questions.
Where you'll use it
- Find a slow report query with EXPLAIN and add the index that fixes it.
- Run and verify a restore drill from a logical backup.
Roles that use these skills
- Database developer
- Backend developer
- Database administrator (junior)
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
Do I use a shared or production server?
No. You run a local MySQL Community server on loopback; shared or production servers are never used.
Can I join with another database background?
Yes, with equivalent SQL experience and a passed diagnostic.
Which programming language is needed?
For module 8, any language with a maintained MySQL driver; the driver choice is pending.
Be first in when MySQL Database Development opens
Email us and we will tell you as soon as enrolment opens.
Notify me when it opens
