mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge mysql.com:/home/bkroot/mysql-4.1 into mysql.com:/home/bk/c4944-4.1
This commit is contained in:
@ -67,14 +67,14 @@ master-bin.000002 110 Query 1 110 use `test`; create table t1 (n int)
|
||||
master-bin.000002 168 Query 1 168 use `test`; insert into t1 values (1)
|
||||
master-bin.000002 228 Query 1 228 use `test`; drop table t1
|
||||
show binary logs;
|
||||
Log_name
|
||||
master-bin.000001
|
||||
master-bin.000002
|
||||
Log_name File_size
|
||||
master-bin.000001 0
|
||||
master-bin.000002 276
|
||||
start slave;
|
||||
show binary logs;
|
||||
Log_name
|
||||
slave-bin.000001
|
||||
slave-bin.000002
|
||||
Log_name File_size
|
||||
slave-bin.000001 0
|
||||
slave-bin.000002 170
|
||||
show binlog events in 'slave-bin.000001' from 4;
|
||||
Log_name Pos Event_type Server_id Orig_log_pos Info
|
||||
slave-bin.000001 4 Start 2 4 Server ver: VERSION, Binlog ver: 3
|
||||
|
@ -26,10 +26,10 @@ create table t2(m int not null auto_increment primary key);
|
||||
insert into t2 values (34),(67),(123);
|
||||
flush logs;
|
||||
show binary logs;
|
||||
Log_name
|
||||
master-bin.000001
|
||||
master-bin.000002
|
||||
master-bin.000003
|
||||
Log_name File_size
|
||||
master-bin.000001 0
|
||||
master-bin.000002 0
|
||||
master-bin.000003 4
|
||||
create table t3 select * from temp_table;
|
||||
select * from t3;
|
||||
a
|
||||
@ -42,18 +42,18 @@ set global sql_slave_skip_counter=1;
|
||||
start slave;
|
||||
purge master logs to 'master-bin.000002';
|
||||
show master logs;
|
||||
Log_name
|
||||
master-bin.000002
|
||||
master-bin.000003
|
||||
Log_name File_size
|
||||
master-bin.000002 0
|
||||
master-bin.000003 229
|
||||
purge binary logs to 'master-bin.000002';
|
||||
show binary logs;
|
||||
Log_name
|
||||
master-bin.000002
|
||||
master-bin.000003
|
||||
Log_name File_size
|
||||
master-bin.000002 0
|
||||
master-bin.000003 229
|
||||
purge master logs before now();
|
||||
show binary logs;
|
||||
Log_name
|
||||
master-bin.000003
|
||||
Log_name File_size
|
||||
master-bin.000003 229
|
||||
insert into t2 values (65);
|
||||
show slave status;
|
||||
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master
|
||||
@ -73,9 +73,9 @@ count(*)
|
||||
100
|
||||
create table t4 select * from temp_table;
|
||||
show binary logs;
|
||||
Log_name
|
||||
master-bin.000003
|
||||
master-bin.000004
|
||||
Log_name File_size
|
||||
master-bin.000003 0
|
||||
master-bin.000004 2886
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000004 2886
|
||||
|
Reference in New Issue
Block a user