MySql 版本:
select version();
+-----------+
| version() |
+-----------+
| 8.0.12 |
+-----------+
1 row in set (0.00 sec)
当前 8.0.12 MySql 环境下会报错:
2019-08-29 11:49:09,338 ERROR [com.alibaba.druid.pool.DruidDataSource] - init datasource error, url: jdbc:mysql://localhost:3306/forest_blog?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC
java.sql.SQLException: Could not retrieve transation read-only status server
Caused by: java.sql.SQLException: Could not retrieve transation read-only status server
MySql 版本: select version(); +-----------+ | version() | +-----------+ | 8.0.12 | +-----------+ 1 row in set (0.00 sec)
当前 8.0.12 MySql 环境下会报错:
2019-08-29 11:49:09,338 ERROR [com.alibaba.druid.pool.DruidDataSource] - init datasource error, url: jdbc:mysql://localhost:3306/forest_blog?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC java.sql.SQLException: Could not retrieve transation read-only status server
Caused by: java.sql.SQLException: Could not retrieve transation read-only status server
替换两个 Jar :
添加新版本:
添加新版本: