Unable to connect to Amazon web service mysql instance

I went through these instructions: http://docs.amazonwebservices.com/AmazonRDS/latest/GettingStartedGuide/

But still can't connect to the database using mysql from the command line.

I even tried: telnet xxxxxxx.clpkcufglfdn.us-east-1.rds.amazonaws.com 3306

but that doesn't connect either.

I did set up the DB security group using the CIDR suggested by the console (I hope it give me the right value).

Update: Firewalls are disabled on my end. It would be odd if amazon had firewalls on their end and wouldn't mention it in their documentation.

Update2: I'm behind a wireless router which had assigned my machine the IP of 10.0.0.2 so I tried adding that to the security groups but still can't connect.


Update: Firewalls are disabled on my end. It would be odd if amazon had firewalls on their end and wouldn't mention it in their documentation.

Amazon's security groups are a firewall.

I did set up the DB security group using the CIDR suggested by the console (I hope it give me the right value).

If it's not the IP you're connecting from, it's not the right value.


Sounds like you have a firewall that is dropping your connection. Either it is on your end or Amazon's end; probably need to talk to your IT group and if that isn't the issue then Amazon's group to see if you missed a step.


If you are trying to access a RDS instance from within the same AWS datacenter you need to specify a local internal IP address (ie 10.xxx) and not the public dns/ip as your connection simply doesn't go out of the lan

You can find the local IP address of your EC2 box by typing: ifconfig OR checking your login name (ie ubuntu@10.xxx)

I didn't find this anywhere and wasted a lot of time. I hope this helps!

链接地址: http://www.djcxy.com/p/51642.html

上一篇: NHibernate未来对象图许多查询

下一篇: 无法连接到Amazon Web服务的mysql实例