数据库版本mysql5.7,驱动已更换。报表查询提示无法连接,但实际本地navicat是正常连接的。如果不处理,过半小时会自己变好。不然就重启tomcat,也能立即解决。不知道怎么解决。
MySQL数据连接常见问题
估计连接数不够,试试
https://m.php.cn/faq/485219.html
链接超时或者SSL校验问题,参考:【Mysql】Communications link failure,The last packet sent successfully to the server was 0 millisecond_communications link failure the last packet sent s-CSDN博客