Skip to content

Instantly share code, notes, and snippets.

@parasquid
Last active August 29, 2015 14:06
Show Gist options
  • Save parasquid/7aaa1c365f1f11b001b6 to your computer and use it in GitHub Desktop.
Save parasquid/7aaa1c365f1f11b001b6 to your computer and use it in GitHub Desktop.
trust local postgres connections
sed -i 's/local all postgres peer/local all all peer/' /etc/postgresql/9.3/main/pg_hba.conf
sed -i 's/host all all 127.0.0.1\/32 md5/host all all 127.0.0.1\/32 trust/' /etc/postgresql/9.3/main/pg_hba.conf
/etc/init.d/postgresql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment