SQL Workshop
Support materials for a training about SQL/MySQL we do at Flywire from time to time.
Getting Started
We've prepared a container with MySQL that you can bring up with make up
and then create the schema and load some test data on it:
make up # wait few seconds for it to start
make schema seed
For the exercises, you can write your queries in scratch.sql
and run them automatically with make
- it's the default target. We recommend you to read the Makefile
targets to understand how mysql
executable is executed inside the container.
You can also run MySQL Shell by doing make shell
. Alternativelly, MySQL will be available at port 3306 - user root
, password password
.
Other targets that you may find interesting:
make slides # bring up slides used in the workshop
make drop # drop all the tables
make clean # clean all CSV seed files
make generate_data # generate CSV seed files
Slides and exercises
There are some exercises prepared for you, they can be found by doing make slides
in a terminal. Solutions are in the exercises
folder.