mysql - 无法连接到 Amazon Web 服务 mysql 实例

标签 mysql amazon-web-services

我仔细阅读了这些说明: http://docs.amazonwebservices.com/AmazonRDS/latest/GettingStartedGuide/

但是还是无法从命令行使用mysql连接到数据库。

我什至试过: 远程登录 xxxxxxx.clpkcufglfdn.us-east-1.rds.amazonaws.com 3306

但这也没有连接。

我确实使用控制台建议的 CIDR 设置了数据库安全组(我希望它给我正确的值)。

更新:我这边禁用了防火墙。如果亚马逊有防火墙并且不在他们的文档中提及它,那就太奇怪了。

更新 2:我在一个无线路由器后面,它为我的机器分配了 10.0.0.2 IP,所以我尝试将其添加到安全组,但仍然无法连接。

最佳答案

Update: Firewalls are disabled on my end. It would be odd if amazon had firewalls on their end and wouldn't mention it in their documentation.

Amazon 的安全组防火墙。

I did set up the DB security group using the CIDR suggested by the console (I hope it give me the right value).

如果它不是您连接的 IP,则它不是正确的值。

关于mysql - 无法连接到 Amazon Web 服务 mysql 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5446612/

相关文章:

php - MYSQL/PHP - 合并具有不同列的两个表

php - Grocery 增删改查 : How to set field dropdown

java - 无法在基于 Java 的 Web 服务或 Eclipse 中包含 Java 库 (.jar)

amazon-web-services - 当我在 AWS 控制台上通过 Web 浏览器使用 SSH 时。如何设置我的安全组来源?

WordPress meta_value 中的 PHP/MySQL 编码 '12345' 到 'c11d38b47a44fcaa3035cb0342afb974'?

amazon-web-services - 在ECS上建立CI/CD管道的最佳方法是什么?

amazon-web-services - Serverless 框架 'dev' 和 'prod' 分离

python - 从 boto2 下载 S3 存储桶中的子文件夹文件

amazon-web-services - 当我们将只读副本提升为单独的 RDS 实例时会发生什么?

php - 优化此 SQL 查询