mysql 连接异常

07-05-20 qinzy

我的驱动mysql-3.1.1
项目中不时会报告 如下异常,请问是否是驱动造成,如果不是,那请指教
java.sql.SQLException: No operations allowed after connection closed.Connection was implicitly closed due to underlying exception/error:

** END NESTED EXCEPTION **



Last packet sent to the server was 0 ms ago.

STACKTRACE:

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: Connection reset by peer: socket write error

STACKTRACE:

java.net.SocketException: Connection reset by peer: socket write error

** END NESTED EXCEPTION **



Last packet sent to the server was 0 ms ago.

qinzy
2007-05-20 20:46

请各位老师帮助我

banq
2007-05-21 15:36

数据库无法连接问题解决无非两个:
1. 更换数据库版本
2. 更换JDBC JAR版本
3. 确认数据库端口连接正常
以上技术细节可查google