简体   繁体   English

尝试连接amazon mysql rds时出错10060

[英]Error 10060 while trying to connect an amazon mysql rds

I created a MYSQL Amazon RDS instance and tried accessing it to through MYSQL Workbench from a windows machine. 我创建了一个MYSQL Amazon RDS实例,并尝试从Windows机器通过MYSQL Workbench访问它。
But I'm getting an 10060 error whereas the Amazon RDS is publicly accessible. 但我收到10060错误,而Amazon RDS可以公开访问。
I read some documentation on amazon forums, but I'm unable to understand how to set up VPC . 我在亚马逊论坛上阅读了一些文档,但我无法理解如何设置VPC
Any help will be appreciated. 任何帮助将不胜感激。 thanks. 谢谢。

This error is a result of the inbound connection rule set on your DB instance. 此错误是数据库实例上设置的入站连接规则的结果。

For each RDS database instance we create, there are Inbound & Outbound connection-security groups. 对于我们创建的每个RDS数据库实例,都有入站和出站连接安全组。

In AWS RDS console, under 'Databases', click on the 'DB Identifier' of your RDS instance. 在AWS RDS控制台的“数据库”下,单击RDS实例的“数据库标识符”。 Then in the 'Security group rules' section, click on 'Inbound' type security group and edit the inbound rule to allow appropriate inbound connections. 然后在“安全组规则”部分中,单击“入站”类型安全组并编辑入站规则以允许适当的入站连接。

You get 3 options here, under 'source' column: 您可以在“源”列下找到3个选项:

  • Custom 习惯
  • Anywhere (Allows connections from any IP. Not recommended for production.) Anywhere (允许来自任何IP的连接。不建议用于生产。)
  • My IP (Automatically detects your machine's IP) 我的IP (自动检测机器的IP)

1st: add inbound rule. 1st:添加入站规则。 -rds console - instances - details > Security groups(click link) - EC2 Managment Console - at the bottom of the page tab "inbound" - edit > add rule Choose Type: MYSQL/Aurora, Source: My ip -save -rds console - 实例 - 详细信息>安全组(单击链接) - EC2管理控制台 - 页面底部选项卡“入站” - 编辑>添加规则选择类型:MYSQL / Aurora,来源:My ip -save

2nd: if problem remainded try make sign out/sign in. It helped me two times contract. 第二:如果问题仍然存在,请尝试登出/登录。它帮了我两次合同。

I missed enabling public accessibility while creating RDS. 我在创建RDS时错过了启用公共可访问性的功能。 We can enable it later too in the modify section of RDS. 我们以后也可以在RDS的修改部分启用它。 Hope it helps someone. 希望它可以帮助某人。 请参考截图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM