24

While opening query tool via pgadmin, i am getting this error on popup.

could not send data to server: Socket is not connected could not send SSL negotiation packet: Socket is not connected

Does any one know why this is happening.

2 Answers2

62

try changing your host connection to "127.0.0.1" instead of "localhost" it worked for me

0

You might consider that another app is using the socket. Or the postgres pg_hba.conf needs to be modified to allow non-local access.

  • Can you provide me the modifications needs to be done in the pg_hba.conf file? – Bhavesh Tilvani Feb 05 '20 at 11:13
  • Every situation has different details on IP address ranges and such. Please review this page: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html

    After that, please post again if you have questions.

    – Mophilly Feb 06 '20 at 17:04