You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//**mybatis-plus**
@Test
public void readWriteSplitting() {
TUser user = new TUser();
user.setUserName("tom");
user.setAge(20);
userService.save(user);
}
master database table t_user has data:
but slave1 and slave2 has no data: master and slave has not sync data,i don't know where is wrong?
The text was updated successfully, but these errors were encountered:
Master-slave data synchronization is achieved through MySQL's master-slave mechanism, and you need to configure the master-slave settings for MySQL yourself.
@terrymanu
springboot project
pom shardingsphere dependency: shardingsphere-jdbc-core-spring-boot-starter version5.2.0
my application.yaml config file as follows:
here is my test case:
master database table t_user has data:
but slave1 and slave2 has no data:
master and slave has not sync data,i don't know where is wrong?
The text was updated successfully, but these errors were encountered: