rpl_failsafe.test
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
- require_manager;
- source include/master-slave.inc;
- connect (slave_sec,localhost,root,,test,0,slave.sock-1);
- connect (slave_ter,localhost,root,,test,0,slave.sock-2);
- connection master;
- show variables like 'rpl_recovery_rank';
- show status like 'Rpl_status';
- create table t1(n int);
- drop table t1;
- sync_slave_with_master;
- show variables like 'rpl_recovery_rank';
- show status like 'Rpl_status';
- connection slave_sec;
- start slave;
- sync_with_master;
- show variables like 'rpl_recovery_rank';
- show status like 'Rpl_status';
- connection slave_ter;
- start slave;
- sync_with_master;
- show variables like 'rpl_recovery_rank';
- show status like 'Rpl_status';
- # End of 4.1 tests