经常报错,但又不是总是报错。这个错误在网上也很少查得到答案,在这里问过几次也没人回答,你们都没有这个问题吗?我是第一次用这种免费的数据库,以前接触的都是oracle或informix之类,对mysql不太清楚配置,是我的配置有问题吗?报错如下:
java.lang.Exception: sql error:Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1619)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1828)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2179)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1412)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1494)
at com.mysql.jdbc.Connection.execSQL(Connection.java:1905)
at com.mysql.jdbc.Connection.execSQL(Connection.java:1847)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1182)
at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:205)
at DBAccess.DBAccessAgent.getResultSet(DBAccessAgent.java:18)
at mata.GameResult.IfExistRec(GameResult.java:362)
at mata.GameResult.UpdateGameResult(GameResult.java:284)
at mata.GameResult.AnalyseAndUpdate(GameResult.java:125)
at mata.GameResult.GetFtGameResult(GameResult.java:105)
at mata.RefPageThread.run(RefPageThread.java:42)
** END NESTED EXCEPTION **
--转自