PostgreSQLMySQLRedis Intermediate Free course, 2 parts
Databases for apps
Run Postgres, MySQL and Redis safely: users, backups, restores and connection limits.
For developers who now own the database.
- 8 lessons
- 3h 10m total time
- 2 hands-on labs
- 2 diagrams
- 8 quizzes
Course complete
You finished Databases for apps
All 8 lessons done on . Share it, print the certificate, or start the next course below.
Levelrail Learn Certificate of completion Completed Databases for apps on Levelrail Learn 8 lessons, 3h 10m of guided practice levelrail.com/learn/courses/databases-for-apps/
What you will be able to do
- Create least-privilege roles
- Back up and prove a restore
- Understand connection strings and pooling
- Run Redis with the right persistence
Syllabus
8 lessons in 2 parts, 3h 10m in total
Part 1
Lessons 1 to 4
4 lessons, 1h 25m 0/4- Install Postgres and connect with psql on Ubuntu or Docker Up next Done Install Postgres either by running the official Docker image with a named volume or with apt, then open a psql session to list, create and enter databases. 20 min Beginner Lab Quiz
- Postgres roles and permissions for an app user and a read-only user Up next Done A Postgres role is a login or a group that owns objects and holds privileges, so you create a limited role per app with GRANT instead of letting the app use the superuser. 25 min Intermediate Lab Diagram Quiz
- Database connection strings explained for Postgres, MySQL and Redis Up next Done A connection string is a single URL that packs the scheme, user, password, host, port, database name and options an app needs to reach a database. 15 min Beginner Quiz
- Postgres backup and restore with pg_dump and pg_restore Up next Done pg_dump writes a consistent copy of one database to a file, and pg_restore or psql loads that file into a database, so you can back up, move or rebuild Postgres data. 25 min Intermediate Quiz
Part 2
Lessons 5 to 8
4 lessons, 1h 45m 0/4- Upgrade Postgres to a new major version safely Up next Done A major Postgres upgrade changes the on-disk data format, so you move data with dump and restore or pg_upgrade instead of just installing or starting a newer version. 30 min Intermediate Quiz
- MySQL and MariaDB basics on Ubuntu: install, users, backups Up next Done MySQL and MariaDB are related open source relational databases that you install with apt or Docker, secure, then use through a limited user, mysqldump backups and a localhost-only bind address. 25 min Beginner Quiz
- Redis basics, persistence and security on a server Up next Done Redis is an in-memory key-value store that keeps data in RAM and saves it to disk with RDB snapshots, an append-only file or both, and it must be bound to localhost and password protected. 25 min Intermediate Diagram Quiz
- Database connection pooling and max connections for Postgres and MySQL Up next Done Every database connection uses server resources, so you cap them with max_connections, size each app's pool so the total fits under it, and add a pooler such as PgBouncer when many clients share few queries. 25 min Intermediate Quiz