mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	 1f6ecc0cd3
			
		
	
	1f6ecc0cd3
	
	
	
		
			
			Cleaned up test; Removed wrong DROP TABLE commands and use standard table and database names. changed store_warning() -> push_warning_print()
		
			
				
	
	
		
			18 lines
		
	
	
		
			445 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			445 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| source include/master-slave.inc;
 | |
| 
 | |
| CREATE TABLE t1 (name varchar(64), age smallint(3));
 | |
| INSERT INTO  t1 SET name='Andy', age=31;
 | |
| INSERT t1 SET name='Jacob', age=2;
 | |
| INSERT into t1 SET name='Caleb', age=1;
 | |
| ALTER TABLE t1 ADD id int(8) ZEROFILL AUTO_INCREMENT PRIMARY KEY;
 | |
| select * from t1;
 | |
| save_master_pos;
 | |
| connection slave;
 | |
| sync_with_master;
 | |
| select * from t1;
 | |
| connection master;
 | |
| drop table t1;
 | |
| save_master_pos;
 | |
| connection slave;
 | |
| sync_with_master;
 |