从EC2实例访问RDS时,该时间显示超时错误
When accessing RDS from an EC2 instance that time show me timeout error
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection timed out in我尝试指定EC2实例的IP地址并指定RDS实例的内部IP,但是错误相同.
i have try to specifying the IP address of the EC2 instance and specify the internal IP of the RDS instance but error is same.
推荐答案最可能的原因是您的RDS安全组未配置为允许传入流量.
The most probable reason is that your RDS Security Groups are not configured to allow incoming traffic.
您需要更改这些安全组并允许入站流量.
You need to change those security groups and allow inbound traffic.
建议将入站流量的源IP限制为您要从中命中RDS的EC2实例的内部IP,或仅限于在其中创建EC2实例的VPC/子网的CIDR块.
Would recommend that inbound traffic's source IP's be limited to internal IP's of the EC2 instances from which you are hitting the RDS or for the CIDR block of the VPC/Subnet in which your EC2 instances are created.
更多推荐
AWS RDS数据库显示超时错误
发布评论