终有弱水替沧海4032800
2016-11-08 19:32
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 **
你的数据库密码一致吗
我觉得是URL地址有问题,你把shopping问号后面的全去掉试下
DBHelp类25行,32行代码贴一下
JAVA遇见HTML——JSP篇
248278 学习 · 3071 问题
相似问题