我仔细阅读了这些说明: 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/