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服务
 

 

 

 

 

人已赞赏
数据库

mysqld: Can not perform keyring migration : Invalid --keyring-migration-source option【解决办法】

2020-11-18 23:07:21

数据库

mysql输错了 如何返回【解决办法】

2020-11-18 23:15:02

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
'); })();