楼主:
Kenqr (function(){})()
2014-12-24 13:39:18想用java程式连接远端的mysql数据库,但是出现以下错误讯息:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago.
The driver has not received any packets from the server.
若是使用MySQL workbench进行连接,则会出现以下错误讯息:
http://i.imgur.com/mfQwfe9.png
即使把java程式拿到数据库所在的服务器上跑,也是出现一样的错误讯息
但是把连接的ip改成127.0.0.1后,就可以正常连接了
my.ini中
skip-networking没开启
bind-address未设定,改成"0.0.0.0"也不行
服务器防火墙关掉无效
帐号有允许任意ip连入(%)
请问这可能是什么问题呢?