启动seata和nocas的时候遇到的问题

今天在整seata的时候遇到了一个问题,在配置完registry.conf的registry和config,并且在nocas中新增了seataServer.properties配置文件,然后再启动seata服务的时候报错,主要堆栈信息:

create connection SQLException, url: jdbc:mysql://127.0.0.1:3306/seata?useUnicode=true&rewriteBatchedStatements=true, errorCode 0, state 08001
==>
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.

看堆栈信息肯定是mysql相关的,检查了配置信息也是正常的,然后百度了这类异常信息,查询之后发现是因为mysql版本的问题。可能原因:seata不支持mysql8,连接驱动是5版本的,所以找到seata的lib目录,把对应的mysql8的驱动扔进去就可以了。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章