Java线上报错,mysql数据库

线上报错:
{timestamp: "2023-01-17 14:29:14", status: 500, error: "Internal Server Error",…}
error: "Internal Server Error"
message: "status 500 reading ApiPlatformService#createQr(QRCodeVO); content:↵{"timestamp":"20230117 14:29:14844","status":500,"error":"Internal Server Error","message":"nested exception is org.apache.ibatis.exceptions.PersistenceException: \n### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure\n\nThe last packet successfully received from the server was 2 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.\n### The error may exist in URL [jar:file:/app.jar!/BOOT-INF/classes!/mapper/dict/SysDictMapper.xml]\n### The error may involve com.hyzk.platform.api.controller.dict.dao.SysDictMapper.get\n### The error occurred while executing a query\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure\n\nThe last packet successfully received from the server was 2 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.","path":"/file/createQcEqument"}"
path: "/incoming/confirm-receipt"
status: 500
timestamp: "2023-01-17 14:29:14"
摸不着头脑 不知道是因为啥

Failed to obtain JDBC Connection
数据库没有连上,检查字符串是否正确,用工具测试数据库到底能不能连上,开没开,防火墙拦没拦

这个错误信息表明在你的应用程序中,在试图连接到MySQL数据库时出现了问题。具体来说,是"Failed to obtain JDBC Connection",这意味着应用程序无法获取与数据库的连接。同时还有另外一个异常"Communications link failure",它表明在尝试与数据库建立连接时出现了网络错误。
可能原因:
1.数据库服务器可能不可用
2.数据库连接配置错误
3.数据库服务器超负荷或繁忙
4.网络连接故障
5.数据库登录凭据问题
6.数据库磁盘空间不足

连接错误,检查数据库服务是否开启、url、driver驱动包、username、password是否输入正确,driver依赖是否导入

请检查下系统连接MySQL数据库是否正常:数据库连接配置、数据库服务