mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			671 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			671 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
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;
 | 
						|
save_master_pos;
 | 
						|
connection slave;
 | 
						|
sync_with_master;
 | 
						|
show variables like 'rpl_recovery_rank';
 | 
						|
show status like 'Rpl_status';
 | 
						|
connection slave_sec;
 | 
						|
slave start;
 | 
						|
sync_with_master;
 | 
						|
show variables like 'rpl_recovery_rank';
 | 
						|
show status like 'Rpl_status';
 | 
						|
connection slave_ter;
 | 
						|
slave start;
 | 
						|
sync_with_master;
 | 
						|
show variables like 'rpl_recovery_rank';
 | 
						|
show status like 'Rpl_status';
 |