简体   繁体   中英

Cannot connect to AWS RDS DB Instance from EC2 instance

ERROR 2003 (HY000): Can't connect to MySQL server on 'xyz.cdhtaamn5ynq.us-east-1.rds.amazonaws.com' (110)

I enabled Public Accessible while creating RDS DB Instance. I opened 3306 port in EC2 instance security group. I commented binding-address=localhost in /etc/mysql/mysql.conf.d/mysqld.cnf file. I cannot able to connect RDS through EC2 instance. Please help me. Thanks in advance.

Even with publicly available checked -- your RDS instance is still launched into a Security Group. I would look at the inbound rules on this security group to ensure that traffic is allowed from your ec2 instance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM