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、重啟


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM