mysql插入数据报错:
因为分库分表了,没有配
在nacos配置上就行了
spring:
shardingsphere:
sharding:
tables:
table_a:
actual-data-nodes: ms-ds-$->{0..3}.table_a
在尝试向MySQL分库分表插入数据时遇到错误,问题根源在于未正确配置分库分表规则。解决方案是在Nacos中进行配置,例如设置table_a的实际数据节点为`ms-ds-$->{0..3}
mysql插入数据报错:
因为分库分表了,没有配
在nacos配置上就行了
spring:
shardingsphere:
sharding:
tables:
table_a:
actual-data-nodes: ms-ds-$->{0..3}.table_a
5411
1125
2382

被折叠的 条评论
为什么被折叠?
