Last active
May 24, 2022 09:22
-
-
Save laszlomiklosik/9661756 to your computer and use it in GitHub Desktop.
Allow remote access to postgres via username and password
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) in file /var/lib/pgsql/9.3/data/postgresql.conf change the default value 'localhost' to '*' (all) as shown | |
listen_addresses = '*' | |
2) in file /var/lib/pgsql/9.3/data/pg_hba.conf add line: | |
host all all all password | |
3) if it still does not work, you bet it's iptables fault. so either stop it temporarily to verify this or add an exception for port 5432 | |
see this: http://www.cyberciti.biz/tips/howto-iptables-postgresql-open-port.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks 7u7