com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure【解决办法】

今天爱分享给大家带来com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure【解决办法】,希望能够帮助到大家。

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_221]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_221]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_221]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_221]
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:425) ~[mysql-connector-java-5.1.46.jar:5.1.46]
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990) ~[mysql-connector-java-5.1.46.jar:5.1.46]
	at com.mysql.jdbc.MysqlIO.(MysqlIO.java:342) ~[mysql-connector-java-5.1.46.jar:5.1.46]
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2188) ~[mysql-connector-java-5.1.46.jar:5.1.46]

原因分析

:MySQL服务未启动

解决方案

解决方案:启动MySQL服务
 

 

 

 

 

原文链接:https://blog.itblood.com/1774.html,转载请注明出处。
0
Winter~乡间性活~ WINTER- Ver250530 官方中文步兵版[PC+安卓1.65G] [日系SLG/官中/动态]
Winter~乡间性活~ WINTER- Ver250530 官方中文步兵版[PC+安卓1.65G] [日系SLG/官中/动态]
6分钟前 有人购买 去瞅瞅看

站点公告

显示验证码
没有账号?注册  忘记密码?