Tuesday, May 1, 2018

[google-cloud-sql-discuss] Re: Can't Connect to Cloud SQL from Compute Engine

Hello, 

I am assuming that you are running PDO on GCE instance for db connectivity and you have authorized the static IP address( not ephemeral) of the instancei n Cloud SQL Authorisation[1]. However, I recommend you to read this article[2] that contains the most frequent issues with the Google Cloud SQL and the steps to take in order to resolve them. You may also want to check these stackoverflow threads[3][4] where this type of error is addressed. And if you are still experiencing the issue, in order to investigate further, I will need you to provide the following information in a private message: 

1. The project ID and Cloud SQL instance name.

2. When do you get this error? If it's possible, provide a screenshot.

3. Has this ever worked ?

4. If yes, have you made any changes prior error?


[1] https://cloud.google.com/sql/docs/mysql/connect-compute-engine

[2] https://cloud.google.com/sql/docs/mysql/diagnose-issues

[3] https://stackoverflow.com/questions/35801292/how-do-you-get-pdo-persistent-connections-to-googles-cloud-sql-to-work?rq=1

[4] https://stackoverflow.com/questions/21028598/unable-to-connect-to-google-cloud-sql-using-pdo




--
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/ce42da25-629f-4572-9f37-0c4cf255a32c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment