MYSQL RDS on EC2 instance

0

Why would I be able to connect to mysql rds database locally but not on my ec2 environment?

1 回答
0

Assuming that EC2 and RDS are in the same VPC, check the security group associated with the RDS instance has an inbound rule allowing TCP port 3306 from the EC2's IP address, and that the security group associated with the EC2 allows TCP port 3306 outbound to the RDS instance.

If they're in different VPCs then check the VPC peering setup, and the route tables for both subnets.

profile picture
专家
Steve_M
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则