在'等待初始通信数据包'时丢失了与MySQL服务器的连接,系统错误:2

我刚刚使用Ubuntu创build了一个新的RackSpace VPS。 我通常使用CentOS,所以原谅我的Ubuntu新手的错误。

我使用Puttybuild立了一个SSH隧道,并尝试通过SQLYog连接,这是我在CentOS上无数次完成的。

我收到错误消息

在'等待初始通信数据包'时丢失了与MySQL服务器的连接,系统错误:2

我通过本地连接

SQLYog 127.0.0.1 8115根

隧道8115 127.0.0.1:3306

在my.cnf中我有绑定地址127.0.0.1和跳过networking不存在。 在这一点上我已经用尽了我的知识。

更新:

我的iptables是

target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp spt:domain ACCEPT udp -- anywhere anywhere udp spt:domain ACCEPT tcp -- anywhere anywhere tcp spt:http ACCEPT tcp -- anywhere anywhere tcp dpt:mysql ACCEPT tcp -- anywhere anywhere tcp dpt:1337 DROP all -- anywhere anywhere 

我只是试图删除IPTABLES中的所有条目,这解决了这个问题。 有人能让我知道我错了什么吗?

谢谢

我build议你检查一下是否启用了防火墙(iptables)或者一些安全软件(apparmor / selinux)。 此外错误日志将在这里有所帮助。

本手册页可以帮助您debugging问题。