AWS RDS Database show timeout error

喜你入骨 提交于 2020-07-07 11:29:36

问题


When accessing RDS from an EC2 instance that time show me timeout error

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection timed out in

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.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/47773330/aws-rds-database-show-timeout-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!