问题描述
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
1.4.2支持mysql8。但是在1.5.1中,您需要手动将mysql8依赖项添加到seat-server.jar类路径中。
原回答者GitHub用户slievrly
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。