Created
July 20, 2017 17:59
-
-
Save jmolinski/fb662ad04ea2b01a20e64fd7f3fa7d4d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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