Giter Site home page Giter Site logo

Comments (6)

funky-eyes avatar funky-eyes commented on September 27, 2024

https://github.com/apache/incubator-seata/blob/2.x/script/server/db/mysql.sql
根据这里来建表

from incubator-seata.

a8159236 avatar a8159236 commented on September 27, 2024

https://github.com/apache/incubator-seata/blob/2.x/script/server/db/mysql.sql 根据这里来建表

我将mysql.sql导入了我的seata数据中一共是四张表
image
但是nacos中的shuj数据库该如何配置?

是要配置四张表:
store.db.globalTable=global_table
store.db.branchTable=branch_table
store.db.distributedLockTable=distributed_lock
store.db.lockTable=lock_table

还是按照官方文档配置三张表就行:
store.db.globalTable=global_table
store.db.branchTable=branch_table
store.db.lockTable=lock_table

from incubator-seata.

a8159236 avatar a8159236 commented on September 27, 2024

https://seata.apache.org/zh-cn/docs/ops/deploy-by-docker-compose/
我使用的是docker-compose的部署方式

from incubator-seata.

a8159236 avatar a8159236 commented on September 27, 2024

因为如果我按照官方文档只配置这三个参数:
store.db.globalTable=global_table
store.db.branchTable=branch_table
store.db.lockTable=lock_table
在启动时日志会报错,提示要配置distributed表
企业微信截图_17168587718682
需要添加一行参数store.db.distributedLockTable=distributed_lock才能避免该报错
那么我需要加上这行参数吗?这个加不加有没有什么影响 ?是否可以忽略这个报错?@funky-eyes

from incubator-seata.

funky-eyes avatar funky-eyes commented on September 27, 2024

这个错不影响运行,如果你不使用分布式锁来做seata-server的任务协调那就不需要这个配置,不过建议还是配上,并且创建对应的表

from incubator-seata.

a8159236 avatar a8159236 commented on September 27, 2024

这个错不影响运行,如果你不使用分布式锁来做seata-server的任务协调那就不需要这个配置,不过建议还是配上,并且创建对应的表

好的谢谢

from incubator-seata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.