无法远程连接到AWS的RDS数据库实例 [英] Can not remote connect to RDS DB instance of AWS

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

问题描述

我有一个连接有问题到DB AWS实例我CONFIG后认为:

I have a problem with connect to DB instance of AWS after I config that:

http://www.test.htmlcssworld.com/CD​​N/rds- dashboard.png

我已经是这个数据库实例与规则添加到安全组:MySQL的 - TCP - 端口:3306和源是任何地方

I already add this DB instance to the Security Group with RULE: MySQL - TCP - port:3306 and source is Anywhere.

http://www.test.htmlcssworld.com/CD​​N/cmd- rds.png

但是,当我尝试远程通过CLI,显示错误(10060)。连接

But when I try to remote connect via CLI that show error (10060).

请注意:所有这些我操纵在美国西部(俄勒冈州)和具有安全组规则

Note: All of them i manipulation at US West (Oregon) and have Security Group Rule.

推荐答案

几件事情要检查

  • 安全组(你这样做已经,看起来很不错)
  • 在子网是公开的?也就是说,它有一个路由表,其中包括一个规则说0.0.0.0/0 DST互联网网关
  • 在Internet网关连接到您的VPC

在一个侧面说明,我会强烈反对,使您的数据库公布在互联网上。在一个理想的世界,你的数据库只能有一个专用IP地址,必须只能从您的应用程序服务器。如果你真正需要的是能够从Internet访问你的数据库,你的安全小组应被限制在一个/ 32的IP地址

On a side note, I would strongly discourage to make your database publicly available on the internet. In an ideal world, your database must have only a private IP address and must be available only from your app servers. Should you really need to be able to access your database from the Internet, your Security Group should be restricted to a /32 IP address

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆