[英]How can I connect to a MySQL deamon on other host?
I'd like to connect to MySQL (deamon is running on my VPS) via HeidiSQL. 我想通过HeidiSQL连接到MySQL(deamon在我的VPS上运行)。 I've created new user, commented bind-adress option and when I try to connect with it via HeidiSQL, I've got an error 2003: Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10061).
我创建了新用户,并注释了bind-adress选项,当我尝试通过HeidiSQL与之连接时,出现错误2003:无法连接到“ xxx.xxx.xxx.xxx”上的MySQL服务器(10061 )。 What should I do?
我该怎么办?
It could be a number of factors. 这可能是许多因素。
See if a firewall is blocking your traffic to the other host 查看防火墙是否阻止您访问另一主机
Can you simply ping the host from the client machine? 您可以简单地从客户端计算机ping主机吗?
Can you also open a simple telnet session to the host on port 3306 ? 您还能在端口3306上打开到主机的简单telnet会话吗? (If the telnet is accepted, you will probably see some characters appear and you will remain in the telnet session for a few seconds before the connection is closed. If not accepted, you will see the message Connection refused.)
(如果接受telnet,您可能会看到一些字符出现,并且在关闭连接之前您将在telnet会话中停留几秒钟。如果不接受,您将看到消息Connection拒绝。)
There's a simple checklist for this: 有一个简单的清单:
mysql --host=host_ip
where host_ip
is your network IP address. mysql --host=host_ip
将服务器连接到服务器,其中host_ip
是您的网络IP地址。 I think the default is localhost-only.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.