[英]RDS unable to connect to local machine
I created simple free tier RDS instance for mysql connection testing from local.我创建了简单的免费层 RDS 实例,用于从本地进行 mysql 连接测试。 i made sure
Public accessibility
is yes
created inbound rule as this (all traffic for all ports from anywhere)我确保
Public accessibility
yes
创建的入站规则(来自任何地方的所有端口的所有流量)
> sgr-052bd15d02d6f0xxx – All traffic All All sg-857778f1
> sgr-085e08ad1f482xxxx IPv6 All traffic All All ::/0 for sqlyog
then i ran following command然后我运行以下命令
mysql -h database-1.czzsgxxxxxxx.us-east-2.rds.amazonaws.com -P 3306 -u admin -p
(entered password)
but it doesn't connects and gives following error:但它没有连接并给出以下错误:
ERROR 2003 (HY000): Can't connect to MySQL server on 'database-1.czzsgzotg0i1.us-east-2.rds.amazonaws.com' (110)
Now i've researched a lot and found out that this problem gets fixed only by changing the inbound rule for db but in my case its still not working(also i've tried other inbound rules but that didn't work either.现在我已经研究了很多,发现这个问题只能通过更改 db 的入站规则来解决,但在我的情况下它仍然不起作用(我也尝试过其他入站规则,但也没有用。
If you are wanting to connect from your own computer on the Internet to the Amazon RDS instance, the Security Group needs an Inbound rule for:如果您想从 Internet 上的自己的计算机连接到 Amazon RDS 实例,则安全组需要用于以下各项的入站规则:
Looking at your current rules:查看您当前的规则:
> sgr-052bd15d02d6f0xxx – All traffic All All sg-857778f1
> sgr-085e08ad1f482xxxx IPv6 All traffic All All ::/0 for sqlyog
The first line is only accepting incoming connections from Security Group sg-857778f1
.第一行只接受来自安全组
sg-857778f1
传入连接。 The second line is for IPv6.第二行用于 IPv6。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.