Skip to content

Instantly share code, notes, and snippets.

@ozooxo
Created August 11, 2015 09:22
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 ozooxo/6551d20e7116a1ece477 to your computer and use it in GitHub Desktop.
Save ozooxo/6551d20e7116a1ece477 to your computer and use it in GitHub Desktop.
Setup PostgreSQL

Basically follow this link will work.

To give access of remote users using postgresql-client, one need to add the following line in /etc/postgresql/9.3/main/pg_hba.conf.

host    all             all             0.0.0.0/0               md5
@ozooxo
Copy link
Author

ozooxo commented Mar 1, 2016

Setup the password for user postgres.

Change the above line to:

local   all         postgres                          ident

and sudo -u postgres psql and

ALTER USER postgres PASSWORD 'newPassword';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment