JDBC中的Communications link failure due to underlying exception错误的解决办法
2009年2月3日 16:50
标签: Java, JDBC, spring+struts+hibernate and 解决办法
问题描述:使用JDBC连接Mysql数据库时,出现“Connection reset”错误,抛出如下异常:
Connection couldn't be established to jdbc:mysql://***/***?user=***&password=********
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception: ...