The|The last packet sent successfully to the server was 0 milliseconds ago.

【The|The last packet sent successfully to the server was 0 milliseconds ago.】分类:JavaEE框架技术原创文章
作者:屈二朴
运行环境: 阿里云ECS + Cent OS 7.8 + JDK1.8 + Tocat 9.0 + MySQL 8.0
报错:

### Error querying database.Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

解决方式:将阿里云ECS服务器上的MySQL数据重启

    推荐阅读