Wednesday, March 4, 2020

[google-cloud-sql-discuss] Re: why my java keeps trying to connect to cloud sql via cloudsqlproxy?

I have another instance which is working.  By that I means, there's no cloud sql proxy in the middle; the same java code can connect to it.
To simulate the issue on the working instance, I intentionally changed mysql user name in the java call... and then i got the same message 
(Access denied for user 'test-'@cloudsqlproxy~someipaddress (using password: YES))

What's weird here is (1) it's still referring to a mysql account that i never setup
(2) the ip-address is not known to me and it's not active

any idea?

On Wednesday, March 4, 2020 at 9:42:21 AM UTC-8, Katayoon (Cloud Platform Support) wrote:
Hi Khanh, 

Cloud SQL proxy is needed to connect securely to Cloud SQL. In all scenarios to connect to a Cloud SQL instance a proxy is used unless you whitelist the IP address of the external client to the Cloud SQL instance or using App Engine/Cloud functions otherwise. 


--
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/7521ec2b-9969-4a20-8515-0911e45b70bd%40googlegroups.com.

No comments:

Post a Comment