mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
28 lines
551 B
Text
28 lines
551 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
connection master;
|
|
drop database if exists mysqltest1;
|
|
create database mysqltest1;
|
|
use mysqltest1;
|
|
CREATE TABLE t1 (a char(3));
|
|
CREATE TABLE t2 (a char(3));
|
|
insert into t1 values("ANN");
|
|
insert into t1 values("GUI");
|
|
insert into t2 values("LIL");
|
|
insert into t2 values("ABE");
|
|
insert into t2 values("ANG");
|
|
connection slave;
|
|
use mysqltest1;
|
|
select * from t1 order by a;
|
|
a
|
|
ANN
|
|
GUI
|
|
select * from t2 order by a;
|
|
a
|
|
ABE
|
|
ANG
|
|
LIL
|
|
connection master;
|
|
DROP DATABASE mysqltest1;
|
|
connection slave;
|
|
include/rpl_end.inc
|