随笔分类 - ShardingSphere
摘要:其他的都类似,只不过参数不太一样,重写之后想怎么玩就怎么玩 首先创建简单maven项目,这里不做说明,自己搞 物理库自行创建,必须有分片列,其他随意。 导入依赖 <!-- sharding-jdbc依赖 --> <dependency> <groupId>org.apache.shardingsph
阅读全文
摘要:原理看官网:https://shardingsphere.apache.org/document/current/cn/overview/ sharding proxy代理mysql实现分库的步骤: 下载 wget https://mirrors.tuna.tsinghua.edu.cn/apach
阅读全文