Skip to content

Instantly share code, notes, and snippets.

@cihann
Created December 9, 2014 21:45
Show Gist options
  • Save cihann/7fbc71007059c59de82e to your computer and use it in GitHub Desktop.
Save cihann/7fbc71007059c59de82e to your computer and use it in GitHub Desktop.
postgresql initial setup
$ 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