The driver has not received any packets from the server

  1. 这个错误的一个原因是数据库服务关闭了,没有启动。
  2. 我连接的是mysql,但是之前mysql的服务被我关闭了,现在直接启动idea中springboot用到mysql数据库的项目的时候就报错了。只需要重新启动一下服务就好了。
  3. 启动服务可以直接在任务管理器中找到对应的服务启动。
  4. 参考链接:https://www.pianshen.com/article/1688283664/

Guess you like

Origin blog.csdn.net/qq_43987149/article/details/117876519