I am trying to connect cloud sql with pgadmin but it throws error when I try to execute query.

"Could not send Data to server, socket is not connected, could not sent SSL negotiation pocket"

But When I connect with different Database tool like DBViz / Psql, I can execute the query - no such error in other tools. I am kind of lost in the error, could you please help me to resolve this.

  • 2
    Try using instead of localhost under Connection Host.
    – Subash
    Jan 27, 2020 at 7:59

1 Answer 1


Subash's answer worked for me. Switching from localhost to allowed the connection successfully.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.