Unable to access Amazon RDS using Eclipse

2019-06-05 21:28发布

问题:

I just installed MySQL in Amazon RDS, using its wizards. I selected the same security group my EC2 instance is using.

I tried to access this by Eclipse AWS toolkit. What I did is right clicking on the RDS instance and clicked on "Conenct". Then it asked for the password and tried to connect, but ended up with the below error.

Unable to connect to RDS database
java.lang.reflect.InvocationTargetException

I have seen number of posts regarding this without having a single solution.

回答1:

I hope your machine IP is part of aws security rule. Please also check the respective ports are not blocked by your firewall..



回答2:

You probably gave access to your ec2 security group, but not your local ip address. RDS does not use ec2 security groups, but I can open access to an ec2 security group.