2001-09-28 07:05:54 +02:00
|
|
|
slave start;
|
2001-11-04 14:43:41 +01:00
|
|
|
Could not initialize master info structure, check permisions on master.info
|
2001-09-28 07:05:54 +02:00
|
|
|
slave start;
|
2001-11-04 14:43:41 +01:00
|
|
|
Could not initialize master info structure, check permisions on master.info
|
|
|
|
change master to master_host='127.0.0.1',master_port=$MASTER_MYPORT,
|
2001-09-28 07:05:54 +02:00
|
|
|
master_user='root';
|
2001-11-04 14:43:41 +01:00
|
|
|
Could not initialize master info
|
2001-09-28 07:05:54 +02:00
|
|
|
reset slave;
|
2001-11-04 14:43:41 +01:00
|
|
|
change master to master_host='127.0.0.1',master_port=$MASTER_MYPORT,
|
2001-09-28 07:05:54 +02:00
|
|
|
master_user='root';
|
|
|
|
reset master;
|
|
|
|
slave start;
|
|
|
|
drop table if exists t1;
|
|
|
|
create table t1 (s text);
|
|
|
|
insert into t1 values('Could not break slave'),('Tried hard');
|
|
|
|
show slave status;
|
2001-06-24 03:37:24 +02:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
|
|
|
|
127.0.0.1 root 9999 60 master-bin.001 234 Yes 0 0 3
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t1;
|
2000-12-27 02:31:06 +01:00
|
|
|
s
|
|
|
|
Could not break slave
|
|
|
|
Tried hard
|
2001-09-28 07:05:54 +02:00
|
|
|
flush logs;
|
|
|
|
drop table if exists t2;
|
|
|
|
create table t2(m int not null primary key);
|
|
|
|
insert into t2 values (34),(67),(123);
|
|
|
|
flush logs;
|
|
|
|
show master logs;
|
2000-12-27 02:31:06 +01:00
|
|
|
Log_name
|
|
|
|
master-bin.001
|
|
|
|
master-bin.002
|
|
|
|
master-bin.003
|
2001-09-28 07:05:54 +02:00
|
|
|
insert into t2 values(1234);
|
|
|
|
insert into t2 values(1234);
|
|
|
|
slave stop;
|
|
|
|
set sql_slave_skip_counter=1;
|
|
|
|
slave start;
|
|
|
|
purge master logs to 'master-bin.003';
|
|
|
|
show master logs;
|
2000-12-27 02:31:06 +01:00
|
|
|
Log_name
|
|
|
|
master-bin.003
|
2001-09-28 07:05:54 +02:00
|
|
|
insert into t2 values (65);
|
|
|
|
show slave status;
|
2001-06-24 03:37:24 +02:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
|
|
|
|
127.0.0.1 root 9999 60 master-bin.003 202 Yes 0 0 3
|
2001-09-28 07:05:54 +02:00
|
|
|
select * from t2;
|
2000-12-27 02:31:06 +01:00
|
|
|
m
|
|
|
|
34
|
2001-01-24 17:15:34 +01:00
|
|
|
65
|
2000-12-27 02:31:06 +01:00
|
|
|
67
|
|
|
|
123
|
2001-01-24 17:15:34 +01:00
|
|
|
1234
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table if exists t3;
|
|
|
|
create table t3 (n int);
|
|
|
|
show master logs;
|
2001-01-24 17:15:34 +01:00
|
|
|
Log_name
|
|
|
|
master-bin.003
|
|
|
|
master-bin.004
|
|
|
|
master-bin.005
|
2001-03-27 19:23:04 +02:00
|
|
|
master-bin.006
|
2001-09-28 07:05:54 +02:00
|
|
|
show master status;
|
2001-02-20 07:08:24 +01:00
|
|
|
File Position Binlog_do_db Binlog_ignore_db
|
2001-11-04 14:43:41 +01:00
|
|
|
master-bin.006 710
|
2001-09-28 07:05:54 +02:00
|
|
|
slave stop;
|
|
|
|
slave start;
|
|
|
|
show slave status;
|
2001-06-24 03:37:24 +02:00
|
|
|
Master_Host Master_User Master_Port Connect_retry Log_File Pos Slave_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Last_log_seq
|
2001-11-04 14:43:41 +01:00
|
|
|
127.0.0.1 root 9999 60 master-bin.006 710 Yes 0 0 11
|
2001-09-28 07:05:54 +02:00
|
|
|
lock tables t3 read;
|
|
|
|
select count(*) from t3 where n >= 4;
|
2001-01-24 17:15:34 +01:00
|
|
|
count(*)
|
|
|
|
100
|
2001-09-28 07:05:54 +02:00
|
|
|
unlock tables;
|
|
|
|
drop table if exists t1,t2,t3;
|