Monday, July 8, 2019

[google-cloud-sql-discuss] Re: Can't connect to Postgres Google Cloud SQL via psql

Thanks for confirming. I suggest going back and checking with the first 2 steps: install the psql client and configure access to your instance as running locally means that psql client needs to be installed and the instance will need to be configured to be accessed from the local machine. 

Specifically from the error message, it seems there is an issue with firewall rules related to port 5432 as detailed by this Stackoverflow post. Since the issue occurs when running locally I suggest checking that there is nothing on the client end that would block the connection with the Cloud SQL instance. The connection timeout would be expected in this case, the connection is attempted until a timeout constraint is hit. 


--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/4bacf25f-41d4-4158-a947-a1bfa2b600db%40googlegroups.com.

No comments:

Post a Comment