[英]HeidiSQL can't connect to my RDS database?
Hoping someone can help me with this issue I am running into.希望有人可以帮助我解决我遇到的这个问题。 HeidiSQL won't connect to my RDS database.
HeidiSQL 无法连接到我的 RDS 数据库。 I can connect to it when I'm on my EC2 instance but not using Heidi SQL.
当我在我的 EC2 实例上但不使用 Heidi SQL 时,我可以连接到它。 The error I keep getting is:
我不断收到的错误是:
Can't connect to MySQL server on 'localhost' (10061).
无法连接到“本地主机”上的 MySQL 服务器 (10061)。
Anyone know how to get HeidiSQL to work with RDS on AWS?有人知道如何让 HeidiSQL 与 AWS 上的 RDS 一起工作吗?
Here is how I did it using MySQL(TCP/IP option)下面是我如何使用 MySQL(TCP/IP 选项)
On Amazon RDS, set RDS instance to be publicly accessible.在 Amazon RDS 上,将 RDS 实例设置为可公开访问。 Go to Details -> Modify -> Network & Security -> Public accessibility -> Yes
转到详细信息 -> 修改 -> 网络和安全 -> 公共可访问性 -> 是
Modify Security Group to allow access to your IP.修改安全组以允许访问您的 IP。
RDS Instance page -> Connect -> Security group rules -> Select Security Group -> Inbound ->Edit -> Add Rule -> Type = MYSQL/Aurora -> Protocol = TCP -> Port range =3306 -> Source = My IP -> Save RDS实例页面->连接->安全组规则->选择安全组->入站->编辑->添加规则->类型=MYSQL/Aurora->协议=TCP->端口范围=3306->来源=我的IP -> 保存
On HeidiSql,在 HeidiSql 上,
New Session -> Setting tab -> Network Type = MySQL (TCP/IP) Hostname/IP = your RDS instance endpoint User = RDS instance username Password = your password Port = 3306 Compressed client/server protocol = yest Databases = your database name
Hit Open点击打开
Instructions used from Connecting to a DB Instance Running the MySQL Database Engine 连接到运行 MySQL 数据库引擎的数据库实例中使用的说明
HeidiSQL has issues connecting via SSL using the certificate issued by AWS. HeidiSQL 使用 AWS 颁发的证书通过 SSL 进行连接时出现问题。 I used Eclipse and its plugins for SSL connection.
我使用 Eclipse 及其插件进行 SSL 连接。
If I understand right, RDS just needs an SSH tunnel before connecting per HeidiSQL to its MySQL server.如果我理解正确,RDS 在将每个 HeidiSQL 连接到其 MySQL 服务器之前只需要一个 SSH 隧道。 Setting up a SSH tunnelled connection in HeidiSQL is easy, and documented in the help section .
在 HeidiSQL 中设置 SSH 隧道连接很容易,并在帮助部分进行了说明。
There are also examples on how to connect especially to Amazon RDS via HeidiSQL, for example: http://www.arcusglobal.com/news/accessing-rds-using-heidisql还有关于如何通过 HeidiSQL 特别连接到 Amazon RDS 的示例,例如: http ://www.arcusglobal.com/news/accessing-rds-using-heidisql
This detailed instructions worked for me: Connect To Amazon RDS (Or Any Database) Using HeidiSQL Via SSH Tunneling这个详细说明对我有用: Connect To Amazon RDS (Or Any Database) Using HeidiSQL Via SSH Tunneling
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.