尝试连接 amazon mysql rds 时出现错误 10060 [英] Error 10060 while trying to connect an amazon mysql rds
问题描述
我创建了一个 MYSQL Amazon RDS
实例并尝试从 Windows 机器通过 MYSQL Workbench
访问它.
但我收到 10060
错误,而 Amazon RDS
可公开访问.
我在亚马逊论坛上阅读了一些文档,但我无法理解如何设置 VPC
.
任何帮助将不胜感激.谢谢.
I created a MYSQL Amazon RDS
instance and tried accessing it to through MYSQL Workbench
from a windows machine.
But I'm getting an 10060
error whereas the Amazon RDS
is publicly accessible.
I read some documentation on amazon forums, but I'm unable to understand how to set up VPC
.
Any help will be appreciated. thanks.
推荐答案
此错误是由在您的数据库实例上设置的入站连接规则造成的.
This error is a result of the inbound connection rule set on your DB instance.
对于我们创建的每个 RDS 数据库实例,都有 Inbound &出站连接安全组.
For each RDS database instance we create, there are Inbound & Outbound connection-security groups.
在 AWS RDS 控制台的数据库"下,单击 RDS 实例的数据库标识符".然后在安全组规则"部分,点击入站"类型的安全组并编辑入站规则以允许适当的入站连接.
In AWS RDS console, under 'Databases', click on the 'DB Identifier' of your RDS instance. Then in the 'Security group rules' section, click on 'Inbound' type security group and edit the inbound rule to allow appropriate inbound connections.
您在此处获得 3 个选项,在来源"列下:
You get 3 options here, under 'source' column:
- 自定义
- 任何地方(允许来自任何 IP 的连接.不推荐用于生产.)
- 我的 IP(自动检测您机器的 IP)
- Custom
- Anywhere (Allows connections from any IP. Not recommended for production.)
- My IP (Automatically detects your machine's IP)
这篇关于尝试连接 amazon mysql rds 时出现错误 10060的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!