We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Update package list:
sudo apt update
Install PostgreSQL:
sudo apt install -y postgresql postgresql-contrib
Start PostgreSQL service:
sudo systemctl start postgresql
Enable PostgreSQL to start on boot:
sudo systemctl enable postgresql
Access PostgreSQL as postgres user and create a database:
postgres
sudo -u postgres psql
Once inside the PostgreSQL prompt, you can create a database:
CREATE DATABASE dbname;
Add the postgres URL to the DB
postgresql://username:password@hostname:port/databasename