How to Connect Google SQL database from AWS EC2

424 views
Skip to first unread message

kaze anime

unread,
Aug 30, 2021, 3:09:30 AM8/30/21
to Google Cloud SQL discuss
Hello, i'm new member here, i have a problem for connecting my Cloud SQL DB from AWS Ec2, now i have VPN S2S between AWS and GCP and it's now already work for ping and remote vm each other, but when i want to connect database from AWS EC2 always fail and can't connect with error "ERROR 2003 (HY000): Can't connect to MySQL server on '10.xx.xx.xx' (110)" what must be to do?

thanks

Van Duong

unread,
Oct 4, 2021, 4:43:55 AM10/4/21
to Google Cloud SQL discuss
Hi,
VPN should be using BGP with dynamic route.  Then you need config export custom route in cloudsql peering vpc.
Reply all
Reply to author
Forward
0 new messages