简体   繁体   中英

Can't connect to server on AWS RDS

ı try conncet my sql database on amazon aws

mysql -h database-2.csgofm1hhtui.eu-central-1.rds.amazonaws.com -P 3306 -u ismail -p

But i recieve this exception

ERROR 2002 (HY000): Can't connect to server on 'database-2.csgofm1hhtui.eu-central-1.rds.amazonaws.com' (10060)

Maybe a stupid question, but have you opened inbound Security Group rules?

This error is a result of the inbound connection rule set on your DB instance.

In AWS RDS console, under 'Databases', click on the 'DB Identifier' of your RDS instance. Then in the 'Security group rules' section, click on 'Inbound' type security group and edit the inbound rule to allow appropriate inbound connections.

IF you are trying to connect from an EC2 instance, then the Inbound connection can be the security group of your EC2 instance on port 3306.

See point 4 in the following link: Create a VPC security group for a private DB instance

If its not Security Group, then it could be a route table issue.

AWS Knowledge Center - How do I resolve problems when connecting to my Amazon RDS DB 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