Skip to content

Instantly share code, notes, and snippets.

@jmolinski
Created July 20, 2017 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmolinski/fb662ad04ea2b01a20e64fd7f3fa7d4d to your computer and use it in GitHub Desktop.
Save jmolinski/fb662ad04ea2b01a20e64fd7f3fa7d4d to your computer and use it in GitHub Desktop.
1. apt-get update
2. apt-get install python-pip python-dev libpq-dev postgresql postgresql-contrib
3. sudo su - postgres
4. psql
5.
```
CREATE DATABASE myproject;
CREATE USER myprojectuser WITH PASSWORD 'password';
ALTER ROLE myprojectuser SET client_encoding TO 'utf8';
ALTER ROLE myprojectuser SET default_transaction_isolation TO 'read committed';
ALTER ROLE myprojectuser SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE myproject TO myprojectuser;
\q
```
6. exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment