换个新版本的jar包 Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

javaweb报错:Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNo


报错内容:
Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
原因:mysql-connecter的jar包太老,mysql版本太新
解决:换个新版本的jar包

换个新版本的jar包 Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

上一篇:pymysql-python连接mysql数据库


下一篇:【WEB安全】Fastjson反序列化(下)