mysql数据库突然连不上,myeclipse运行项目时报错如下
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
2019-8-14 2:45:17 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet LoginServlet threw exception
java.lang.NullPointerException
百度出来N种方法都没用,点开Navicat连接数据库,弹窗
Can’t connect to MySQL server on localhost (10061)
按这个提示百度搜索出解决方法如下
方法1,
开始菜单 - 计算机管理 - 服务和应用程序 - 服务
在列表中找到MYSQL(或者MYSQL57)
点开,服务状态点启动
方法2,
cmd执行net start mysql命令启动mysql