Introduction to databases on Cedar
Instructor: Wolfgang Richter and Ata Roudgar (Compute Canada and SFU)
Course plan:
- Short introduction to SQL on Cedar Databases
- why databases
- frontends
- basic commands
- Overview of the two database servers on Cedar: cedar-mysql-vm (MariaDB MySQL v.10.2) and cedar-pgsql-vm (PostgreSQL v.10.1 with PostGIS v.2.4)
- Deeper dive into PostgreSQL on Cedar
- how to get a Postgres account and database on the server for your research
- how to use the psql client from the Compute Canada headnode to interactively issue SQL commands or simply pipe in a set of commands to be executed
- using a scripting language such as Python to access Postgres
- tips on optimizing your SQL commands; importance of creating indexes; explain a long running command to see where it can be optimized
Target audience: general
Duration: 3 hours
Level: beginner
Prerequisites: This is an introductory course, no previous experience is required. We will provide guest accounts on Cedar cluster.
Laptop software: All attendees will need to bring their laptops with wireless access and with a remote SSH client installed (on Windows laptops we recommend the free edition of MobaXterm; on Mac and Linux laptops no need to install anything).
Background information: The database services in WestGrid are now offered through high-performance database MySQL and Postgres servers on Cedar and Graham. Here is the official documentation.