mariadb/mysql-test/t/rpl000016.test
unknown 92a3aedc05 Fixes to get mysql-test-run more portable
Docs/manual.texi:
  More examples based on user comments
client/mysqltest.c:
  Added --sleep and --tmpdir
mysql-test/README:
  Update
mysql-test/include/master-slave.inc:
  Fixed to not be dependent on path to sockets
mysql-test/install_test_db.sh:
  Added privilege for hostname%
mysql-test/mysql-test-run.sh:
  Portability fixes + a lot of new options
mysql-test/r/bigint.result:
  Made test portable
mysql-test/t/bigint.test:
  Made test portable
mysql-test/t/rpl000008.test:
  Changed sleeptime
mysql-test/t/rpl000012.test:
  Fixed to not be dependent on path to sockets
mysql-test/t/rpl000013.test:
  Fixed to not be dependent on path to sockets
mysql-test/t/rpl000014.test:
  Fixed to not be dependent on path to sockets
mysql-test/t/rpl000015.test:
  Fixed to not be dependent on path to sockets
mysql-test/t/rpl000016.test:
  Fixed to not be dependent on path to sockets
2001-01-04 02:56:38 +02:00

35 lines
1 KiB
Text

connect (master,localhost,root,,test,0,mysql-master.sock);
connect (slave,localhost,root,,test,0,mysql-slave.sock);
source include/have_default_master.inc;
system cat /dev/null > var/slave-data/master.info;
system chmod 000 var/slave-data/master.info;
connection slave;
!slave start;
system chmod 600 var/slave-data/master.info;
!slave start;
!change master to master_host='127.0.0.1',master_port=9306,master_user='root';
reset slave;
!change master to master_host='127.0.0.1',master_port=9306,master_user='root';
slave start;
connection master;
drop table if exists t1;
create table t1 (s text);
insert into t1 values('Could not break slave'),('Tried hard');
connection slave;
sleep 2;
select * from t1;
connection master;
flush logs;
drop table if exists t2;
create table t2(m int);
insert into t2 values (34),(67),(123);
flush logs;
sleep 0.3;
show master logs;
purge master logs to 'master-bin.003';
show master logs;
insert into t2 values (65);
connection slave;
sleep 2;
select * from t2;
drop table if exists t1,t2;