mysql连接com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

时间:2014-03-19 16:53:07   收藏:0   阅读:1310

现象:客户端连接服务器端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.

死活修改都不ok,google后,将:

bubuko.com,布布扣
<!--mysql  -->
<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.9</version>
</dependency>    
bubuko.com,布布扣

版本修改为:5.1.14就OK了。不知道为什么,先mark一下。

mysql连接com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure,布布扣,bubuko.com

原文:http://www.cnblogs.com/leeying/p/3611515.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!