mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
b63444de1b
added system command myisammrg/myrg_open.c fixed coredump when opening an empty union table sql/sql_repl.cc fixed warnings, remove confusing comment, fixed coredump in change master to when master.info was corrupted added new replication test case
19 lines
681 B
Text
19 lines
681 B
Text
connect (master,localhost,root,,test,0,var/tmp/mysql.sock);
|
|
connect (slave,localhost,root,,test,0,var/tmp/mysql-slave.sock);
|
|
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 foo;
|
|
create table foo(s text);
|
|
insert into foo values('Could not break slave'),('Tried hard');
|
|
connection slave;
|
|
sleep 0.3;
|
|
select * from foo;
|