Skip to main content
amend per comments
Source Link
Erwin Brandstetter
  • 186.6k
  • 28
  • 465
  • 639

Connections via localhost need TCP/IP connections enabled.

Try setting

listen_addresses = * 

in your postgresql.conf, and restart the server.
Be aware that the whole world can connect to your database then!

As @Bart and @dbenhur commented, the default setting listen_addresses = 'localhost' already covers connections to localhost. This is also true if the setting is commented out.

Connections via localhost need TCP/IP connections enabled.

Try setting

listen_addresses = * 

in your postgresql.conf, and restart the server.
Be aware that the whole world can connect to your database then!

Connections via localhost need TCP/IP connections enabled.

Try setting

listen_addresses = * 

in your postgresql.conf, and restart the server.
Be aware that the whole world can connect to your database then!

As @Bart and @dbenhur commented, the default setting listen_addresses = 'localhost' already covers connections to localhost. This is also true if the setting is commented out.

Source Link
Erwin Brandstetter
  • 186.6k
  • 28
  • 465
  • 639

Connections via localhost need TCP/IP connections enabled.

Try setting

listen_addresses = * 

in your postgresql.conf, and restart the server.
Be aware that the whole world can connect to your database then!