mycat 配置全局表

在已配置全局序列号的基础上

1、schema.xml

<table name="hf_ctrlorder_split_config" primaryKey="HF_CTRLORDER_SPLIT_CONFIG_ID" autoIncrement="true" type="global" dataNode="dn1,dn2,dn3"  />

2、sequence_db_conf.properties

HF_CTRLORDER_SPLIT_CONFIG=dn1

3、修改数据库

在mycat_sequence表中,增加:HF_CTRLORDER_SPLIT_CONFIG  0  100记录

4、重启

原文地址:https://www.cnblogs.com/tengpan-cn/p/5916586.html