[数据库]MySQL解决:MySQLNonTransientConnectionException: Could not create connection to database server.【待完善】

场景复现

mysql数据库 5.7.24

jdbc driver: mysql-connector-java: 5.1.33

jdbc 配置: 
+ jdbc.url
+ driverName: 

Tomcat报错:
MySQLNonTransientConnectionException: Could not create connection to database server.

解决

jdbc driver: mysql-connector-java.jar 从5.1升级到8.0

jdbc 配置:
+ jdbc.url: &useSSL=false
+ driverName: com.mysql.cj.jdbc.Driver

遗留问题:

  • mysql负载高,如何分析和解决?

X 参考文献

[数据库]MySQL解决:MySQLNonTransientConnectionException: Could not create connection to database server.【待完善】

上一篇:Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers


下一篇:SQL server 分组后每组取出任意一行