Seata 1.6.1 连接 Mysql 8.0时报错 : Could not retrieve transation read-only status server
mysql 的数据驱动: com.mysql.jdbc.Driver 是mysql 5 的驱动,而数据库是 mysql 8 ,驱动和数据库不匹配。
解决方式:
1、seata 的lib目录中存在 mysql 8 的驱动,只需要修改seata配置文件中的驱动即可,修改为如下:com.mysql.cj.jdbc.Driver
Seata 1.6.1 连接 Mysql 8.0时报错 : Could not retrieve transation read-only status server
mysql 的数据驱动: com.mysql.jdbc.Driver 是mysql 5 的驱动,而数据库是 mysql 8 ,驱动和数据库不匹配。
解决方式:
1、seata 的lib目录中存在 mysql 8 的驱动,只需要修改seata配置文件中的驱动即可,修改为如下:com.mysql.cj.jdbc.Driver