2003-01-28 07:38:28 +01:00
|
|
|
connect (master,localhost,root,,test,$MASTER_MYPORT,master.sock);
|
|
|
|
connect (slave,localhost,root,,test,$SLAVE_MYPORT,slave.sock);
|
2001-01-24 20:47:09 +01:00
|
|
|
connection master;
|
|
|
|
reset master;
|
2002-06-12 14:04:18 +02:00
|
|
|
grant replication slave on *.* to replicate@localhost identified by 'aaaaaaaaaaaaaaab';
|
|
|
|
grant replication slave on *.* to replicate@127.0.0.1 identified by 'aaaaaaaaaaaaaaab';
|
2001-01-24 20:47:09 +01:00
|
|
|
connection slave;
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2001-01-24 20:47:09 +01:00
|
|
|
connection master;
|
2003-01-06 00:48:59 +01:00
|
|
|
--disable_warnings
|
2001-01-24 20:47:09 +01:00
|
|
|
drop table if exists t1;
|
2003-01-06 00:48:59 +01:00
|
|
|
--enable_warnings
|
2001-01-24 20:47:09 +01:00
|
|
|
create table t1(n int);
|
|
|
|
insert into t1 values(24);
|
2002-10-25 01:46:14 +02:00
|
|
|
sync_slave_with_master;
|
2001-01-24 20:47:09 +01:00
|
|
|
select * from t1;
|
|
|
|
connection master;
|
|
|
|
drop table t1;
|
2002-10-25 01:46:14 +02:00
|
|
|
sync_slave_with_master;
|