Can’t connect to RDS MySQL

amazon ec2amazon-rdsamazon-web-serviceselastic-beanstalk

So, I created a new DB and my EB app is reaching it fine, but I can't seem to access MySQL from my computer. When I try to run:

mysql --host=123.abc.us-west-2.rds.amazonaws.com –-port=3306 –u myname –p mypass

I just seem to get what you'd see if you did like mysql --help. I've also added "my ip" from the dropdown from going into EC2 > Security Groups > My RDS MySQL entry > Inbound tab > Edit. Added my ip there, saved and tried again but still nothing. I'm not sure what else to try.

I'm brand new to AWS and this is my first RDS / EB app I've done.

Best Answer

Do you have your RDS instance in a VPC? Are you sure that your RDS instance has the "Publicly Accessible" setting set to "Yes"?

If you want to be able to access your RDS instance from outside your VPC, you need to switch that option to "Yes".