0
点赞
收藏
分享

微信扫一扫

Unable to open JDBC Connection for DDL execution

小猪肥 2022-02-22 阅读 314

Unable to open JDBC Connection for DDL execution

problem

springBoot jar包打好包之后,服务器运行发现如下报错:

[PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.exception.JDBCConnectionException: Unable to open JDBC Connection for DDL execution

09:57:52.325 com.tell [main] ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization.
java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

solution

远端机器mysql版本太低了 5.7.37 -> 升级到 8.0.26 即可
如有朋友需要知道如何升级,欢迎留言~

mysql> select version();
+-----------+
| version() |
+-----------+
| 5.7.37    |
+-----------+
1 row in set (0.00 sec)
-- 查看mysql版本
mysql> select version();
+-----------+
| version() |
+-----------+
| 8.0.26    |
+-----------+
1 row in set (0.00 sec)
举报

相关推荐

0 条评论