Skip to main content
Pollinaytepollinayte.Search
TechnologyBeginner

Setting Up Your Database

Choose, install and connect to PostgreSQL, MySQL or SQLite, and load the starter database.

Nine short, practical lessons: choose a database, learn the terminal basics, then install, connect and load the starter database in PostgreSQL, MySQL or SQLite.

  • 25m
  • 11 lessons
  • Certificate of completion

Published by Pollinayte. Created by Pollinayte Editorial.

About this course

Get a working database on your own computer. In nine short lessons you'll choose between PostgreSQL, MySQL and SQLite, learn the terminal basics, and then install, connect and load the community-garden starter database for the one you picked.

The Linux steps were run end to end on Ubuntu 24.04 and every terminal result you see was recorded from a real session. macOS and Windows steps follow each vendor's documentation and are shown as text cards; they were not run on screen.

What you'll do

  • Choose the right database to install for your goal.
  • Open a terminal, move between folders, and run a program.
  • Install PostgreSQL, connect with psql, and load the starter file.
  • List, create and switch PostgreSQL databases, and create a login role.
  • Install MySQL, sign in with the mysql client, and load the starter file.
  • Create MySQL databases and users, grant access, and choose a database.
  • Open a SQLite database file and load the starter file.
  • Open the right SQLite file, check which one is open, and back it up.
  • Connect a graphical tool to your database with the same connection details.

Before you start

Nothing to install first. The three starter files are in the first lesson.

--- Pollinayte is not affiliated with or endorsed by Oracle, the PostgreSQL Community Association, or Hipp, Wyrick & Company, Inc. MySQL is a registered trademark of Oracle and/or its affiliates. PostgreSQL is a registered trademark of the PostgreSQL Community Association of Canada. SQLite is a registered trademark of Hipp, Wyrick & Company, Inc.

What you will learn

  • Choose the right database to install for your goal.
  • Open a terminal, move between folders, and run a program.
  • Install PostgreSQL, connect with psql, and load the starter file.
  • List, create and switch PostgreSQL databases, and create a login role.
  • Install MySQL, sign in with the mysql client, and load the starter file.
  • Create MySQL databases and users, grant access, and choose a database.
  • Open a SQLite database file and load the starter file.
  • Open the right SQLite file, check which one is open, and back it up.
  • Connect a graphical tool to your database with the same connection details.

Free preview: Choosing PostgreSQL, MySQL or SQLite

Curriculum

Module 1: Before You Install3 lessons
  1. Starter Files: the Garden DatabaseFree preview1m
  2. Choosing PostgreSQL, MySQL or SQLiteFree preview2m
  3. Terminal Basics2m
Module 2: PostgreSQL2 lessons
  1. Install and Connect to PostgreSQL3m
  2. PostgreSQL Databases and Users2m
Module 3: MySQL2 lessons
  1. Install and Connect to MySQL2m
  2. MySQL Databases and Users2m
Module 4: SQLite2 lessons
  1. Install and Open SQLite2m
  2. SQLite Files and Backups2m
Module 5: Optional Tools2 lessons
  1. Optional: Graphical Database Tools2m
  2. Setting Up Your Database: Course Check5m

Who it is for

  • Complete beginners to databases and SQL
  • Anyone preparing for the PostgreSQL, MySQL or SQLite Basics courses

Before you start

  • A computer where you can install software and open a terminal

Back to all courses