猿问

我的数据库连接不了,报错如下。

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: 


** BEGIN NESTED EXCEPTION ** 


java.io.EOFException


STACKTRACE:


java.io.EOFException

at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1963)

at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:557)

at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1027)

at com.mysql.jdbc.Connection.createNewIO(Connection.java:2743)

at com.mysql.jdbc.Connection.<init>(Connection.java:1553)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at util.DBHelp.getConnection(DBHelp.java:25)

at util.DBHelp.main(DBHelp.java:32)



** END NESTED EXCEPTION **


终有弱水替沧海4032800
浏览 2522回答 1
1回答

忘性最大的人

瞧瞧代码可以不
随时随地看视频慕课网APP

相关分类

Java
MySQL
我要回答