mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	CREATE DATABASE statement used the current database instead of the database created when checking conditions for replication. CREATE/DROP/ALTER DATABASE statements are now replicated based on the manipulated database.
		
			
				
	
	
		
			18 lines
		
	
	
		
			583 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			583 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
stop slave;
 | 
						|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 | 
						|
reset master;
 | 
						|
reset slave;
 | 
						|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 | 
						|
start slave;
 | 
						|
drop database if exists mysqltest;
 | 
						|
stop slave;
 | 
						|
create database mysqltest;
 | 
						|
create table t1(a int, b int, unique(b));
 | 
						|
use mysqltest;
 | 
						|
load data infile '../../std_data/rpl_loaddata.dat' into table test.t1;
 | 
						|
show binlog events from 79;
 | 
						|
Log_name	Pos	Event_type	Server_id	Orig_log_pos	Info
 | 
						|
master-bin.000001	79	Query	1	79	drop database if exists mysqltest
 | 
						|
master-bin.000001	152	Query	1	152	create database mysqltest
 | 
						|
drop database mysqltest;
 |