我正在尝试通过MySQL Workbench连接到AWS RDB(MySQL),并且无法建立连接。该数据库的URL,名称和密码已正确配置,并在几天前已实际运行。我什至用net stat检查了端口,并说它正在被MySQL使用(正确)。问题出在哪里?
(下面的图片)
错误:
MySQL验证:
运行实例验证(AWS):
MySQL WB配置验证:
公共可访问性:
数据库安全组:
答案 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规则。