事先声明我的nacos和seata版本均为1.4.2,下载完成之后

先是在conf目录下,找到了register.conf,更改store配置中type="nacos",再配置nacos的相关属性

在配置完之后,找到file.conf文件

再修改了mode="db",创建了对应的数据库,修改为自己的信息

运行后报错 The server time zone value '锟叫癸拷锟斤拷准时锟斤拷' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specifc time zone value if you want to utilize time zone support

这时候只需要将 lib 包中 jdbc 中的 jar 包提取到 lib 中就行了

我用的mysql版本就是8.0.19,所以可以直接提取,如果本地装的不一样,可以用自己的包,现在就部署成功了

成功在nacos中注册

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐