Postgresql – Unable to connect to posgres using pgadmin

kubernetespostgresql

I have a postgres instance inside a kubernetes cluster. I have setup a port forward and if I use the postgres CLI I can connect and perform queries as expected.

If I connect via pgadmin it appears to work as expected I am able to see the schemas and navigate to the tbles, but if I attempt to open the query tool I receive the following error:

could not send data to server: Socket is not connected (0x00002749/10057) could not send SSL negotiation packet: Socket is not connected (0x00002749/10057)

Does anyone know what I need to configure to allow pgadmin to connect to this system?

Best Answer

Unfortunately the error message you get isn't very specific. You may need to configure additional access in pg_hba.conf file which controls client authentication in PostgreSQL. Check its current content and if needed, add the corresponding entry according to this article.

Related Topic