💻 Programming Course
MySQL
The database behind most PHP applications. Learn to create databases, model tables, query data and manage a real server.
9 lessons
Beginner
Curriculum
MySQL course
Work through the lessons in order.
1
Connecting to MySQL
Connect from the command line and from PHP, and understand hosts, ports and users.
Start →
→
Tutorial
2
Creating Databases and Tables
Create a database with the right charset and build tables with sensible types and constraints.
Start →
→
Tutorial
3
Data Types and Constraints
Pick types that fit the data and let MySQL enforce correctness.
Start →
→
Tutorial
4
Reading and Writing Data
Use SELECT, INSERT, UPDATE and DELETE from applications and the command line.
Start →
→
Tutorial
5
Joins and Relationships in MySQL
Query related tables and keep relationships consistent with foreign keys.
Start →
→
Tutorial
6
Functions, Dates and Text
Use built-in functions for formatting, dates and text so reports read well.
Start →
→
Tutorial
7
Views and Stored Procedures
Save reusable queries as views and wrap multi-step work in stored procedures.
Start →
→
Tutorial
8
Users, Permissions and Backups
Create least-privilege users and take backups you can actually restore.
Start →
→
Tutorial
9
Project: A Small School Database
Design, build and query a small school database from scratch.
Start →
→
Project
Start a guided path
Prefer a structured plan?
Follow a learning path to master a full skill from start to finish.