Skip to content

Instantly share code, notes, and snippets.

@codewec
codewec / gist:183afcdf7fe2d4a84a8e1e0617b72974
Created March 5, 2020 12:51
Install PostgreSQL Ubuntu 18.04 and create user with database
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo -u postgres psql
CREATE DATABASE test_database;
CREATE USER test_user WITH password 'qwerty';
GRANT ALL ON DATABASE test_database TO test_user;