Skip to content

Instantly share code, notes, and snippets.

@codewec
Created March 5, 2020 12:51
Show Gist options
  • Select an option

  • Save codewec/183afcdf7fe2d4a84a8e1e0617b72974 to your computer and use it in GitHub Desktop.

Select an option

Save codewec/183afcdf7fe2d4a84a8e1e0617b72974 to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment