MySQL实例无法连接(AWS)

时间:2019-05-14 20:34:34

标签: mysql amazon-web-services mysql-workbench

我正在尝试通过MySQL Workbench连接到AWS RDB(MySQL),并且无法建立连接。该数据库的URL,名称和密码已正确配置,并在几天前已实际运行。我什至用net stat检查了端口,并说它正在被MySQL使用(正确)。问题出在哪里?

(下面的图片)

错误:

enter image description here

MySQL验证:

enter image description here

运行实例验证(AWS):

enter image description here

MySQL WB配置验证:

enter image description here

公共可访问性:

enter image description here

数据库安全组:

enter image description here

1 个答案:

答案 0 :(得分:0)

这是来自官方文档:

By default, network access is turned off to a DB instance. You can specify rules in a security group that allows access from an IP address range, port, or EC2 security group. Once ingress rules are configured, the same rules apply to all DB instances that are associated with that security group. You can specify up to 20 rules in a security group.

在“连接性和安全性”下检查与mysql RDS关联的安全组,并使用本地公共IP地址添加新的入站MySQL类型TCP规则。