Created
December 9, 2014 21:45
-
-
Save cihann/7fbc71007059c59de82e to your computer and use it in GitHub Desktop.
postgresql initial 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 pgadmin3 | |
$ sudo -u postgres psql template1 | |
template1=# ALTER USER postgres with encrypted password 'your_password'; | |
edit /etc/postgresql/9.3/main/pg_hba.conf: | |
local all postgres md5 | |
save and restart postgres | |
$ sudo /etc/init.d/postgresql restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment