Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Connection timed out trying to connecting to mysql database

Im trying to connect my database in my instanc, the thing its a I have locate my database in aws as 

database-1.xxxxxxxx6.us-east-1.rds.amazonaws.com

When I run nc in my computer the connections works 

nc -zvdatabase-1.xxxxxxxx6.us-east-1.rds.amazonaws.com 3306

Connection todatabase-1.xxxxxxxx6.us-east-1.rds.amazonaws.com port 3306 [tcp/mysql] succeeded!

but I got a error when I run the nc from google cloud

port 3306 (tcp) failed: Connection timed out 

takeshicamilo_0-1701288054281.png

I also created a firewall Rule but still it doesnt work

 

1 1 602
1 REPLY 1

Hello takeshi.

I suggest running the test again with the network connectivity test tool https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview

It will hopefully give you some useful information that you can use to further troubleshoot. If you want you can reply back with your findings and I'll try to assist you further.