简体   繁体   English

无法从我自己的计算机(包括Cloud9)以外的任何计算机访问AWS MySQL实例

[英]Cannot access AWS MySQL instance from any computer other than my own (including Cloud9)

I spun up a mysql RDS instance in AWS the other day and am able to connect to it from my computer via powershell. 前几天,我在AWS中启动了一个mysql RDS实例,并能够通过Powershell从我的计算机连接到它。 However, when i am on another computer, including a virtual terminal in the cloud9 IDE, I cannot get into the mysql database. 但是,当我在另一台计算机上,包括cloud9 IDE中的虚拟终端时,我无法进入mysql数据库。 I am VERY new to AWS, so i don't know where to go next. 我是AWS的新手,所以我不知道下一步要去哪里。 Thanks! 谢谢!

You wrote that you're able to connect from your own computer but you can't when you're on another computer, so it's probably the inbound rules on the security group you have on that RDS, by default when you're creating a free-tier RDS, your ip address is captured and stored in the security group. 您写道,您可以从自己的计算机进行连接,但在另一台计算机上则无法建立连接,因此这可能是该RDS上的安全组上的入站规则,默认情况下,当您创建免费RDS,您的IP地址将被捕获并存储在安全组中。

So what you need to do is to navigate to that RDS instance, click on the security group attached to it, modify the inbound rules and either make it publicly available 0.0.0.0/0 which is unsecrue and unrecommended but works if you're just exploring AWS, or you'd add in the ip address of the computer you're trying to access it from. 因此,您需要做的是导航到该RDS实例,单击与其关联的安全组,修改入站规则,然后使其公开可用0.0.0.0/0 ,这是不安全和不推荐的,但是如果您只是浏览AWS,或者您要添加尝试访问它的计算机的IP地址。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM