Reputation: 31
Guys I had troubles with my EC2, I connected the EC2 through SSH successfully and used command line like “mysql -h **..rds.amazonaws.com (myRDS Endpoint) -p 3306 -u ** -p**” to connect to the RDS, unfortunately, I got this error after a while: "ERROR 2003 (HY000): Can't connect to MySql server on '**..rds.amazonaws.com' (110)'', there were several comments:
Very appreciated if any help, thanks in advance.
Best Regards
Beyond Wang
Upvotes: 0
Views: 532
Reputation: 176
You need to make sure that the security group your EC2 instances are in is added to the security group for the RDS instance.
Upvotes: 1