Last active
August 29, 2015 14:04
-
-
Save sharshenov/965e71881f4e824797df to your computer and use it in GitHub Desktop.
Postgres setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install postgresql-9.3 postgresql-contrib | |
sudo -u postgres psql | |
create role USERNAME with password 'PASSWORD'; | |
alter role USERNAME login; | |
create database DBNAME; | |
grant all privileges on database DBNAME to USERNAME; | |
\q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment