Unable to connect to Cloud SQL from other cloud

41 views
Skip to first unread message

Navnath Shinde

unread,
Dec 14, 2017, 9:05:30 AM12/14/17
to Google Cloud SQL discuss

I added IPV4 address 103.35.164.XXX to Authorize Tab of Cloud SQL instance

But from that IP address (Hosting), I am not able to do PDO connection to MySQL instance

Error!: SQLSTATE[HY000] [2005] Unknown MySQL server host

I tried restarting the instance but no success.

Please help !

Karthick (Cloud Platform Support)

unread,
Dec 14, 2017, 4:36:19 PM12/14/17
to Google Cloud SQL discuss

Hello Navnath,


Could you show the exact error that you are seeing? From the given error, I could see that you may need to allow remote connections to your database in the server. Instance-level access control protects sql instances against unauthorized logins. You can visit stackoverflow [1][2] for further insights.


[1] https://stackoverflow.com/questions/10573583/not-able-to-connect-to-mysql-server-using-pdo

[2] https://stackoverflow.com/questions/23955446/sqlstatehy000-2005-unknown-mysql-server-host-mysql1-alwaysdata-com3306-2


Reply all
Reply to author
Forward
0 new messages