mirror of
https://github.com/MariaDB/server.git
synced 2025-02-13 17:05:35 +01:00
21 lines
772 B
Text
21 lines
772 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
connection slave;
|
|
create table t1 (n int);
|
|
reset master;
|
|
include/stop_slave.inc
|
|
change master to master_port=SLAVE_PORT;
|
|
Slave_IO_Running = 'No'
|
|
Slave_SQL_Running = 'No'
|
|
Last_SQL_Errno = '0'
|
|
Last_SQL_Error = ''
|
|
Exec_Master_Log_Pos = '0'
|
|
start slave;
|
|
insert into t1 values (1);
|
|
include/wait_for_slave_param.inc [Last_IO_Errno]
|
|
Last_IO_Errno = '1593'
|
|
Last_IO_Error = 'Fatal error: The slave I/O thread stops because master and slave have equal MariaDB server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it).'
|
|
include/stop_slave_sql.inc
|
|
reset slave;
|
|
reset master;
|
|
drop table t1;
|