mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
19 lines
352 B
Text
19 lines
352 B
Text
--source include/master-slave.inc
|
|
|
|
connection master;
|
|
|
|
CREATE TABLE t1 (a INT, b INT);
|
|
CREATE INDEX i1 ON t1 (a);
|
|
CREATE OR REPLACE INDEX i1 ON t1 (a, b);
|
|
sync_slave_with_master;
|
|
|
|
--echo # On slave:
|
|
SHOW CREATE TABLE t1;
|
|
|
|
connection master;
|
|
--echo # On master:
|
|
SHOW CREATE TABLE t1;
|
|
DROP TABLE t1;
|
|
sync_slave_with_master;
|
|
|
|
--source include/rpl_end.inc
|