Skip to content

Lab 0 - Install MariaDB in your Codespaces Environment

Instructions

We get to practice with a few more unix commands!

1. Update your package list

This makes sure your Codespaces environment knows about the latest available software.

sudo apt-get update

2. Install MariaDB.

This is the database server and the client tool.

  • mariadb-server → the actual database engine

  • mariadb-client → the command-line tool you use to log in and run SQL

sudo apt-get install -y mariadb-server mariadb-client

This can take about 20–30 seconds.

3. Start the MariaDB service

This turns the database "on" so you can connect to it.

sudo service mariadb start

codespace screenshot of starting mariaDB