文章目录
1. 官网下载
发布说明:https://github.com/seata/seata/releases

2. 解压到指定目录并修改 conf 目录下的 file.conf 配置文件
- 修改 Service 模块(自定义事务组名称):
vgroup_mapping.my_test_tx_group = "fsp_tx_group"
- 修改 store 模块(让信息保存在数据库、默认是保存在文件中):
mode = "db"
driver-class-name = "com.mysql.cj.jdbc.Driver"
url = "jdbc:mysql://127.0.0.1:3306/seata?serverTimezone=UTC"
user = "root"
password = "你自己的密码"
3. MySQL8 数据库新建库 seata,并建立三张表和替换 MySQL8 驱动
建表语句如下:
SQL 语句如下:
-- the table to store GlobalSession data
drop table if exists `global_table`;
create table `global_table` (
`xid` varchar(128) not null,
`transaction_id` bigint,
`status` tinyint not null,

最低0.47元/天 解锁文章
1326





