Skip to content

Instantly share code, notes, and snippets.

@kmaksimovv
Last active January 27, 2020 13:38
Show Gist options
  • Select an option

  • Save kmaksimovv/557eabde7af556ca68037089e1684306 to your computer and use it in GitHub Desktop.

Select an option

Save kmaksimovv/557eabde7af556ca68037089e1684306 to your computer and use it in GitHub Desktop.
postgress_setup_ubuntu
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
sudo -u postgres psql
create user username with password 'password';
create database vscale_db;
grant all privileges on database vscale_db to username;
\q
CREATE USER dmosk WITH PASSWORD 'myPassword';
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "dmosk";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment