MySQL 错误代码:2003

herohope 2019-11-09

idea项目一启动就报错:

20:01:13,047 ERROR DruidDataSource:1846 - create connection error
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.

.....

瞄了一下jdbc.propertioes,没毛病啊,去看下mysql,发现登录报错:

MySQL 错误代码:2003

经网络搜索说是mysql服务没启动,遂win+s搜索服务,打开服务找到mysql。。。缓缓打出一个问号。。。。还真没启动(@_@;),惊了,这我就纳闷了,平常一直都是自启,难道是我昨天装了电脑管家,软件权限一通瞎几把操作,把mysql服务都杀了?

遂启动MySQL服务,ojbk。

相关推荐