VillageSQL is a drop-in replacement for MySQL with extensions.
All examples on this page work on VillageSQL. Install Now →
Download it
Run these in any directory you like.sakila-db directory. The 2 files you need from it are
sakila-schema.sql and sakila-data.sql.
Load it
The schema file first, then the data file. Press Return at each password prompt ifroot has no password.
The first thing the schema file does is
DROP SCHEMA IF EXISTS sakila. Running
these 2 commands again rebuilds the database from scratch, so you can always get
back to a clean copy. Anything you changed goes with it.Check it
Ask the server what the database now contains.SHOW TABLES lists the 16 tables and the 7 views together.
The tables can arrive without the data, so count something as well.
Work inside the database
Every lesson writes its queries as thoughsakila is the current database.
Name it when you open the client:
film fails.
See also
- The Sakila sample database — what the 16 tables hold
- SELECT — the first lesson, which queries the data from this one

