This guide walks you through installing and setting up PostgreSQL for SpeechCollector.
- Download and install from PostgreSQL Downloads
- PostgreSQL service starts automatically after installation
# Using Homebrew
brew install postgresql@15
brew services start postgresql@15
# Create database
createdb speechcollector
# Connect to database
psql speechcollector
Once connected to the database, you can install extensions required to use the Spoken-Squadschema, inspect the database content and exit.
CREATE EXTENSION "uuid-ossp";
\l
\q
# Install PostgreSQL
sudo apt update
sudo apt install postgresql postgresql-contrib
# Start PostgreSQL service
sudo systemctl start postgresql
sudo systemctl enable postgresql # Enable auto-start on boot
# Switch to postgres user to create database
sudo -u postgres createdb speechcollector
# Connect to database (as postgres user)
sudo -u postgres psql speechcollector
Once connected to the database, you can inspect the database content and exit
CREATE EXTENSION "uuid-ossp";
\l
\q
Return to the main README to continue with the SpeechCollector setup.