错误2003(HY000):无法连接到AWS RDS上的MySQL服务器 [英] ERROR 2003 (HY000): Can't connect to MySQL server on AWS RDS
问题描述
我创建了一个主机名为'%'的外部用户,以允许远程访问.将本地MySQL连接到远程AWS RDS时出现以下错误:
I created an external user with '%' hostname to allow remote access. I get the following error while connecting the local MySQL to remote AWS RDS:
错误2003(HY000):无法连接到"instance.cvxqy8tbi2bk.us-east-1.rds.amazonaws.com"(110)上的MySQL服务器.
ERROR 2003 (HY000): Can't connect to MySQL server on 'instance.cvxqy8tbi2bk.us-east-1.rds.amazonaws.com' (110).
我尝试注释#bind-address = localhost
,但没有解决方案.
有任何指针吗?
I tried commenting the #bind-address = localhost
but no solution.
Any pointers for this?
推荐答案
今天遇到此问题的任何人都应在6:05左右观看此YouTube视频:
Anyone encountering this issue today should check out this YouTube video at around 6:05:
简而言之,您必须创建一个新的入站安全规则以允许外部连接.
In a nutshell, you have to create a new inbound security rule to allow an external connection.
这篇关于错误2003(HY000):无法连接到AWS RDS上的MySQL服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!