首页 > 数据库技术 > 详细

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

时间:2014-03-19 16:53:07      阅读:1312      评论:0      收藏:0      [点我收藏+]

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!