MySQL 实例无法连接 (AWS)

标签 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

公共(public)可访问性:

enter image description here

数据库安全组:

enter image description here

最佳答案

这来自官方文档:

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 关联的安全组,并使用本地公共(public) IP 地址添加新的入站 MySQL 类型 TCP 规则。

关于MySQL 实例无法连接 (AWS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56138227/

相关文章:

MySQL Workbench 上的 MySQL 查询超时

mysql - 数据库设计 : Associating tables of variable types

php - 在 MySQL ENUM 值中使用撇号将填充 HTML 组合框以进行数据库搜索

node.js - 通过 Node js Express 访问 AWS S3 签名 URL

amazon-web-services - 您能否动态调整 ElastiCache 集群的大小(启用集群模式)?

MySQL远程连接Linux

c# - 使用odbc更新asp.net c#和Mysql中的查询问题

php - 从表单输入值到数组

amazon-web-services - 无法承担角色并验证指定的 targetGroupArn。请验证正在传递的 ECS 服务角色是否具有适当的权限

mysql - 是否可以在 mysql-workbench 中自动缩进查询