开发者社区 > 云原生 > 正文

seata 1.5.1 是不是还不支持 MySQL 8 ?

问题描述

seata 1.5.1 使用MySQL 8.0.25 作为服务端数据库 seata 1.5.1 是不是还不支持 MySQL 8 ?

期待结果

Caused by: java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:151) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:677) ... 35 common frames omitted <==

15:09:39.812 WARN --- [ main] i.s.s.s.db.store.LogStoreDataBaseDAO : global_table table or TRANSACTION_NAME column not found 15:09:39.982 INFO --- [ main] i.s.core.rpc.netty.NettyServerBootstrap : Server started, service listen port: 11006 15:09:39.999 INFO --- [ main] com.alibaba.nacos.client.naming : initializer namespace from System Property :null 15:09:40.027 INFO --- [ main] com.alibaba.nacos.client.naming : [BEAT] adding beat: BeatInfo{port=11006, ip='...', weight=1.0, serviceName='THING@@seata-server', cluste r='default', metadata={}, scheduled=false, period=5000, stopped=false} to beat map. 15:09:40.029 INFO --- [ main] com.alibaba.nacos.client.naming : [REGISTER-SERVICE] 10e2e18f-43a0-4f6c-9a52-7770027d76f9 registering service THING@@seata-server with instance: In stance{instanceId='null', ip='172.16.8.162', port=11006, weight=1.0, healthy=true, enabled=true, ephemeral=true, clusterName='default', serviceName='null', metadata={}} 15:09:40.035 INFO --- [ main] io.seata.server.ServerRunner : seata server started in 637 millSeconds 15:09:44.857 INFO --- [ TxTimeoutCheck_1_1] io.seata.server.session.SessionHolder : Exception running function with key = TxTimeoutCheck ==> java.lang.NullPointerException: null at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1731) at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1419) at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1399) at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1389) at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:100) at io.seata.server.storage.db.lock.DataBaseDistributedLocker.acquireLock(DataBaseDistributedLocker.java:111)

环境信息

JDK version : Seata version: 1.5.1 OS : Others: MySQL 8.0.25

原提问者GitHub用户panhc1997

展开
收起
学习娃 2023-06-14 16:59:57 194 0
1 条回答
写回答
取消 提交回答
  • 1.4.2支持mysql8。但是在1.5.1中,您需要手动将mysql8依赖项添加到seat-server.jar类路径中。

    原回答者GitHub用户slievrly

    2023-06-14 17:30:24
    赞同 展开评论 打赏

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
One Box: 解读事务与分析一体化数据库 HybridDB for MySQL 立即下载
One Box:解读事务与分析一体化数据库HybridDB for MySQL 立即下载
如何支撑HTAP场景-HybridDB for MySQL系统架构和技术演进 立即下载

相关镜像