无法从EC2实例连接到RDS实例

无法从EC2实例连接到RDS实例

本文介绍了无法从EC2实例连接到RDS实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从EC2实例I-78a8df00,我试图连接到RDS实例MySQL的。 * 的**的 * .US东-1.rds.amazonaws.com。它们都在美国东部地区。我加EC2实例的安全组(SG-的 * 的* )到RDS安全组,但是这并没有帮助。这似乎是一个防火墙/ DNS问题,因为它是运行此命令时超时:

From EC2 instance i-78a8df00, I'm trying to connect to RDS instance mysql.****.us-east-1.rds.amazonaws.com. They are both in the U.S. East region. I added the security group of EC2 instance (sg-**) to the RDS security group, but that didn't help. It appears to be a firewall/DNS issue as it is timing out when running this command:

Ubuntu的@ IP-10-195-189-237:〜$ mysql的-h的mysql的 * 的**的 * .us- east-1.rds.amazonaws.comERROR 2003(HY000):无法连接到MySQL服务器上的MySQL的的 * 的**的 * .US - 东 - 1.rds。 .amazonaws.com'(110)

ubuntu@ip-10-195-189-237:~$ mysql -h mysql.****.us-east-1.rds.amazonaws.comERROR 2003 (HY000): Can't connect to MySQL server on 'mysql.****.us-east-1.rds.amazonaws.com' (110)

我可以从我的本地机器使用同一条线路与上述连接的RDS实例的罚款。我尝试了各种论坛,解决方案,但这些并不能帮助。

I can connect to RDS instance fine from my local machine using the same line as above. I tried various forum solutions but those don't help.

谢谢,马克

推荐答案

看起来像某个过去的发布和这次调职之间,亚马逊固定的DNS路由问题,因为现在一切都工作正常,多AZ RDS ...

Looks like sometime between the last posting and this posting, Amazon fixed the DNS routing issue, because everything works fine now for multi-AZ rds...

这篇关于无法从EC2实例连接到RDS实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 20:07