简体   繁体   English

将MySQL工作台连接到Amazon RDS实例

[英]Connecting MySQL workbench to Amazon RDS instance

enter image description here While connecting MySQL workbench to Amazon RDS instance, am getting this error. 在这里输入的形象描述在连接MySQL的工作台到Amazon RDS实例,正在此错误。

/** Connecting to MySQL server ... Can't connect to MySQL server on 'aa58nt64hgc91d.cuh2vqc4pep5.us-east-1.rds.amazonaws.com' (110) **/ / **正在连接到MySQL服务器...无法连接到'aa58nt64hgc91d.cuh2vqc4pep5.us-east-1.rds.amazonaws.com'上的MySQL服务器(110)** /

Please help me to resolve this. 请帮助我解决此问题。

Thanks in advance 提前致谢

You may start checking from basics, 您可以从基础开始检查,

  1. If you are accessing the URI from public, please check the Subnet properties to confirm that they have Internet Gateway attached. 如果要从公共位置访问URI,请检查“子网”属性以确认它们已连接Internet网关。
  2. Check whether security group allows access to port 3306. 检查安全组是否允许访问端口3306。

Did you set it as publicly available while creating the RDS. 您在创建RDS时是否将其设置为公开可用。 在此处输入图片说明

Try telnet aa58nt64hgc91d.cuh2vqc4pep5.us-east-1.rds.amazonaws.com 3306 . 尝试telnet aa58nt64hgc91d.cuh2vqc4pep5.us-east-1.rds.amazonaws.com 3306

Verify that your security group permits port 3306 access. 验证您的安全组允许端口3306访问。

Biggest problem is the firewall. 最大的问题是防火墙。 In AWS this is the Security Group -> Inbound Rules. 在AWS中,这是安全组->入站规则。 You need to open port 3306 (listed as MYSQL/Aurora) to whatever IP address your MySQL client is running on. 您需要打开端口3306(列为MYSQL / Aurora)到运行MySQL客户端的任何IP地址。 Unless you absolutely must (unlikely), do NOT open it up to the whole world - limit to the IPs of the server(s) that will directly access the RDS database. 除非您绝对必须(不太可能),否则不要对整个世界开放-限制将直接访问RDS数据库的服务器的IP。

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

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