Can#39;t connect to RDS instance from EC2 instance(无法从 EC2 实例连接到 RDS 实例)
问题描述
从 EC2 实例 i-78a8df00,我正在尝试连接到 RDS 实例 mysql.************.us-east-1.rds.amazonaws.com.他们都在美国东部地区.我将 EC2 实例的安全组 (sg-********) 添加到 RDS 安全组,但这没有帮助.这似乎是防火墙/DNS 问题,因为它在运行此命令时超时:
ubuntu@ip-10-195-189-237:~$ mysql -h mysql.************.us-east-1.rds.amazonaws.com
<块引用>
错误 2003 (HY000):无法连接到mysql.************.us-east-1.rds.amazonaws.com"上的 MySQL 服务器 (110)>
我可以使用与上面相同的线路从我的本地机器连接到 RDS 实例.我尝试了各种论坛解决方案,但都无济于事.
看起来在上次发布和本次发布之间的某个时间,Amazon 修复了 DNS 路由问题,因为现在对于多可用区 rds 一切正常...>
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.com
ERROR 2003 (HY000): Can't connect to MySQL server on 'mysql.************.us-east-1.rds.amazonaws.com' (110)
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.
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 实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法从 EC2 实例连接到 RDS 实例


基础教程推荐
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01