Commit 514cfd42 authored by unknown's avatar unknown

Updated new tests from Lars review


mysql-test/extra/rpl_tests/rpl_ndb_2multi_eng.test:
  Updated from review comments
mysql-test/include/rpl_multi_engine3.inc:
  Updated from review comments
parent ee7bf38a
############################################################## #######################################
# Author: JBM # Author: JBM #
# Date: 2006-02-23 # Date: 2006-02-23 #
# Purpose: See if replication between # Purpose: See if replication between #
# NDB -> MyISAM and InnoDB works. # NDB -> MyISAM and InnoDB works. #
# and if # and if #
# MyISAM and InnoDB -> NDB works. # MyISAM and InnoDB -> NDB works. #
############################################################## #######################################
# By JBM #
--disable_query_log # Date 2006-02-28 #
select "--- Doing pre cleanup --" as ""; # Change: Implemented review comments #
--enable_query_log #######################################
--echo --- Doing pre test cleanup ---
connection master; connection master;
--disable_warnings --disable_warnings
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
--enable_query_log --enable_query_log
--disable_warnings --echo --- Start test 1 Basic testing ---
select "--- Start test 1 Basic testing --" as ""; --echo --- Create Table Section ---
select "--- Create Table Section --" as "";
--enable_query_log
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255), bc CHAR(255), d DECIMAL(10,4) DEFAULT 0, f FLOAT DEFAULT 0, total BIGINT UNSIGNED, y YEAR, t DATE,PRIMARY KEY(id)); #################################################
# Requirment: Create basic table, replicate #
# basice operations such at insert, update #
# delete between 2 different storage engines #
# Alter table and ensure table is handled #
# Correctly on the slave #
#################################################
--disable_query_log CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255),
select "--- Show table on master --" as ""; bc CHAR(255), d DECIMAL(10,4) DEFAULT 0,
--enable_query_log f FLOAT DEFAULT 0, total BIGINT UNSIGNED,
y YEAR, t DATE,PRIMARY KEY(id));
--echo --- Show table on master ---
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Show table on slave ---
select "--- Show table on slave --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
# Okay lets see how it holds up to table changes # Okay lets see how it holds up to table changes
--disable_query_log --echo --- Check that simple Alter statements are replicated correctly --
select "--- Check that simple Alter statements are replicated correctly --" as "";
--enable_query_log
ALTER TABLE t1 MODIFY vc TEXT; ALTER TABLE t1 MODIFY vc TEXT;
ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY(id, total); ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY(id, total);
--disable_query_log --echo --- Show the new improved table on the master ---
select "--- Show the new improved table on the master --" as "";
--enable_query_log
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Make sure that our tables on slave are still same engine ---
select "--- Make sure that our tables on slave are still same engine --" as ""; --echo --- and that the alter statements replicated correctly ---
select "--- and that the alter statements replicated correctly --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_warnings --echo --- End test 1 Basic testing ---
select "--- End test 1 Basic testing --" as ""; --echo --- Do Cleanup --
select "--- Do Cleanup --" as "";
--enable_query_log
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
################################################################# #################################################################
--disable_warnings
select "--- Start test 2 partition RANGE testing --" as "";
select "--- Do setup --" as "";
--enable_query_log
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255), bc CHAR(255), d DECIMAL(10,4) DEFAULT 0, f FLOAT DEFAULT 0, total BIGINT UNSIGNED, y YEAR, t DATE)PARTITION BY RANGE (YEAR(t)) (PARTITION p0 VALUES LESS THAN (1901), PARTITION p1 VALUES LESS THAN (1946), PARTITION p2 VALUES LESS THAN (1966), PARTITION p3 VALUES LESS THAN (1986), PARTITION p4 VALUES LESS THAN (2005), PARTITION p5 VALUES LESS THAN MAXVALUE); --echo --- Start test 2 partition RANGE testing --
--echo --- Do setup --
--disable_query_log
select "--- Show table on master --" as "";
--enable_query_log #################################################
# Requirment: Create table that is partitioned #
# by range on year i.e. year(t) and replicate #
# basice operations such at insert, update #
# delete between 2 different storage engines #
# Alter table and ensure table is handled #
# Correctly on the slave #
#################################################
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255),
bc CHAR(255), d DECIMAL(10,4) DEFAULT 0,
f FLOAT DEFAULT 0, total BIGINT UNSIGNED,
y YEAR, t DATE)
PARTITION BY RANGE (YEAR(t))
(PARTITION p0 VALUES LESS THAN (1901),
PARTITION p1 VALUES LESS THAN (1946),
PARTITION p2 VALUES LESS THAN (1966),
PARTITION p3 VALUES LESS THAN (1986),
PARTITION p4 VALUES LESS THAN (2005),
PARTITION p5 VALUES LESS THAN MAXVALUE);
--echo --- Show table on master ---
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Show table on slave --
select "--- Show table on slave --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_query_log --echo --- Check that simple Alter statements are replicated correctly ---
select "--- Check that simple Alter statements are replicated correctly --" as "";
--enable_query_log
ALTER TABLE t1 MODIFY vc TEXT; ALTER TABLE t1 MODIFY vc TEXT;
--disable_query_log --echo --- Show the new improved table on the master ---
select "--- Show the new improved table on the master --" as "";
--enable_query_log
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Make sure that our tables on slave are still same engine ---
select "--- Make sure that our tables on slave are still same engine --" as ""; --echo --- and that the alter statements replicated correctly ---
select "--- and that the alter statements replicated correctly --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log --enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_warnings --echo --- End test 2 partition RANGE testing ---
select "--- End test 2 partition RANGE testing --" as ""; --echo --- Do Cleanup ---
select "--- Do Cleanup --" as "";
--enable_query_log
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
######################################################## ########################################################
--disable_warnings
select "--- Start test 3 partition LIST testing --" as "";
select "--- Do setup --" as "";
--enable_query_log
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255), bc CHAR(255), d DECIMAL(10,4) DEFAULT 0, f FLOAT DEFAULT 0, total BIGINT UNSIGNED, y YEAR, t DATE)PARTITION BY LIST(id) (PARTITION p0 VALUES IN (2, 4), PARTITION p1 VALUES IN (42, 142));
--disable_warnings --echo --- Start test 3 partition LIST testing ---
select "--- Test 3 Alter to add partition --" as ""; --echo --- Do setup ---
--enable_query_log #################################################
# Requirment: Create table that is partitioned #
# by list on id i.e. (2,4). Pretend that we #
# missed one and alter to add. Then replicate #
# basice operations such at insert, update #
# delete between 2 different storage engines #
# Alter table and ensure table is handled #
# Correctly on the slave #
#################################################
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255),
bc CHAR(255), d DECIMAL(10,4) DEFAULT 0,
f FLOAT DEFAULT 0, total BIGINT UNSIGNED,
y YEAR, t DATE)
PARTITION BY LIST(id)
(PARTITION p0 VALUES IN (2, 4),
PARTITION p1 VALUES IN (42, 142));
--echo --- Test 3 Alter to add partition ---
ALTER TABLE t1 ADD PARTITION (PARTITION p2 VALUES IN (412)); ALTER TABLE t1 ADD PARTITION (PARTITION p2 VALUES IN (412));
--disable_query_log --echo --- Show table on master ---
select "--- Show table on master --" as "";
--enable_query_log
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Show table on slave ---
select "--- Show table on slave --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_query_log --echo --- Check that simple Alter statements are replicated correctly ---
select "--- Check that simple Alter statements are replicated correctly --" as "";
--enable_query_log
ALTER TABLE t1 MODIFY vc TEXT; ALTER TABLE t1 MODIFY vc TEXT;
--disable_query_log --echo --- Show the new improved table on the master ---
select "--- Show the new improved table on the master --" as "";
--enable_query_log
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Make sure that our tables on slave are still same engine ---
select "--- Make sure that our tables on slave are still same engine --" as ""; --echo --- and that the alter statements replicated correctly ---
select "--- and that the alter statements replicated correctly --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_warnings --echo --- End test 3 partition LIST testing ---
select "--- End test 3 partition LIST testing --" as ""; --echo --- Do Cleanup --
select "--- Do Cleanup --" as "";
--enable_query_log
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
######################################################## ########################################################
--disable_warnings
select "--- Start test 4 partition HASH testing --" as "";
select "--- Do setup --" as "";
--enable_query_log
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255), bc CHAR(255), d DECIMAL(10,4) DEFAULT 0, f FLOAT DEFAULT 0, total BIGINT UNSIGNED, y YEAR, t DATE)PARTITION BY HASH( YEAR(t) ) PARTITIONS 4; --echo --- Start test 4 partition HASH testing ---
--echo --- Do setup ---
#################################################
# Requirment: Create table that is partitioned #
# by hash on year i.e. YEAR(t). Then replicate #
# basice operations such at insert, update #
# delete between 2 different storage engines #
# Alter table and ensure table is handled #
# Correctly on the slave #
#################################################
--disable_query_log
select "--- show that tables have been created correctly --" as ""; CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255),
--enable_query_log bc CHAR(255), d DECIMAL(10,4) DEFAULT 0,
f FLOAT DEFAULT 0, total BIGINT UNSIGNED,
y YEAR, t DATE)
PARTITION BY HASH( YEAR(t) )
PARTITIONS 4;
--echo --- show that tables have been created correctly ---
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_query_log --echo --- Check that simple Alter statements are replicated correctly ---
select "--- Check that simple Alter statements are replicated correctly --" as "";
--enable_query_log
ALTER TABLE t1 MODIFY vc TEXT; ALTER TABLE t1 MODIFY vc TEXT;
--disable_query_log --echo --- Show the new improved table on the master ---
select "--- Show the new improved table on the master --" as "";
--enable_query_log
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Make sure that our tables on slave are still same engine ---
select "--- Make sure that our tables on slave are still same engine --" as ""; --echo --- and that the alter statements replicated correctly ---
select "--- and that the alter statements replicated correctly --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_warnings --echo --- End test 4 partition HASH testing ---
select "--- End test 4 partition HASH testing --" as ""; --echo --- Do Cleanup --
select "--- Do Cleanup --" as "";
--enable_query_log
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
######################################################## ########################################################
--disable_warnings
select "--- Start test 5 partition by key testing --" as "";
select "--- Create Table Section --" as "";
--enable_query_log
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255), bc CHAR(255), d DECIMAL(10,4) DEFAULT 0, f FLOAT DEFAULT 0, total BIGINT UNSIGNED, y YEAR, t DATE,PRIMARY KEY(id))PARTITION BY KEY() PARTITIONS 4; --echo --- Start test 5 partition by key testing ---
--echo --- Create Table Section ---
--disable_query_log #################################################
select "--- Show that tables on master are ndbcluster tables --" as ""; # Requirment: Create table that is partitioned #
--enable_query_log # by key on id with 4 parts. Then replicate #
# basice operations such at insert, update #
# delete between 2 different storage engines #
# Alter table and ensure table is handled #
# Correctly on the slave #
#################################################
CREATE TABLE t1 (id MEDIUMINT NOT NULL, b1 BIT(8), vc VARCHAR(255),
bc CHAR(255), d DECIMAL(10,4) DEFAULT 0,
f FLOAT DEFAULT 0, total BIGINT UNSIGNED,
y YEAR, t DATE,PRIMARY KEY(id))
PARTITION BY KEY()
PARTITIONS 4;
--echo --- Show that tables on master are ndbcluster tables ---
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Show that tables on slave ---
select "--- Show that tables on slave --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
# Okay lets see how it holds up to table changes # Okay lets see how it holds up to table changes
--disable_query_log --echo --- Check that simple Alter statements are replicated correctly ---
select "--- Check that simple Alter statements are replicated correctly --" as "";
--enable_query_log
ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY(id, total); ALTER TABLE t1 DROP PRIMARY KEY, ADD PRIMARY KEY(id, total);
--disable_query_log --echo --- Show the new improved table on the master ---
select "--- Show the new improved table on the master --" as "";
--enable_query_log
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Make sure that our tables on slave are still right type ---
select "--- Make sure that our tables on slave are still myisam, innodb, memory --" as ""; --echo --- and that the alter statements replicated correctly ---
select "--- and that the alter statements replicated correctly --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_query_log --echo --- Check that simple Alter statements are replicated correctly ---
select "--- Check that simple Alter statements are replicated correctly --" as "";
--enable_query_log
ALTER TABLE t1 MODIFY vc TEXT; ALTER TABLE t1 MODIFY vc TEXT;
--disable_query_log --echo --- Show the new improved table on the master ---
select "--- Show the new improved table on the master --" as "";
--enable_query_log
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Make sure that our tables on slave are still same engine ---
select "--- Make sure that our tables on slave are still same engine --" as ""; --echo --- and that the alter statements replicated correctly ---
select "--- and that the alter statements replicated correctly --" as "";
--enable_query_log
sync_slave_with_master; sync_slave_with_master;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
--disable_query_log --echo --- Perform basic operation on master ---
select "--- Perform basic operation on master and ensure replicated correctly --" as ""; --echo --- and ensure replicated correctly ---
--enable_query_log
--source include/rpl_multi_engine3.inc --source include/rpl_multi_engine3.inc
--disable_warnings --echo --- End test 5 key partition testing ---
select "--- End test 1 Basic testing --" as ""; --echo --- Do Cleanup ---
select "--- Do Cleanup --" as "";
--enable_query_log
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
......
...@@ -4,51 +4,59 @@ ...@@ -4,51 +4,59 @@
# Purpose: To reuse through out test and make maint easier # Purpose: To reuse through out test and make maint easier
############################################################# #############################################################
connection master; connection master;
--disable_query_log --echo "--- Insert into t1 --" as "";
select "--- Insert into t1 --" as "";
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"1905-11-14"); --disable_query_log
INSERT INTO t1 VALUES(2,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"1965-11-14"); INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ',
INSERT INTO t1 VALUES(4,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"1985-11-14"); 'Must make it bug free for the customer',
INSERT INTO t1 VALUES(142,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"1995-11-14"); 654321.4321,15.21,0,1965,"1905-11-14");
INSERT INTO t1 VALUES(412,1,'Testing MySQL databases is a cool ', 'Must make it bug free for the customer',654321.4321,15.21,0,1965,"2005-11-14"); INSERT INTO t1 VALUES(2,1,'Testing MySQL databases is a cool ',
select "--- Select from t1 on master --" as ""; 'Must make it bug free for the customer',
--enable_query_log 654321.4321,15.21,0,1965,"1965-11-14");
INSERT INTO t1 VALUES(4,1,'Testing MySQL databases is a cool ',
'Must make it bug free for the customer',
654321.4321,15.21,0,1965,"1985-11-14");
INSERT INTO t1 VALUES(142,1,'Testing MySQL databases is a cool ',
'Must make it bug free for the customer',
654321.4321,15.21,0,1965,"1995-11-14");
INSERT INTO t1 VALUES(412,1,'Testing MySQL databases is a cool ',
'Must make it bug free for the customer',
654321.4321,15.21,0,1965,"2005-11-14");
--enable_query_log
--echo --- Select from t1 on master ---
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id; select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
sync_slave_with_master; sync_slave_with_master;
--disable_query_log --echo --- Select from t1 on slave ---
select "--- Select from t1 on slave --" as "";
--enable_query_log
select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id; select id,hex(b1),vc,bc,d,f,total,y,t from t1 order by id;
connection master; connection master;
--disable_query_log
select "--- Update t1 on master --" as ""; --echo --- Update t1 on master --
--enable_query_log
UPDATE t1 SET b1 = 0, t="2006-02-22" WHERE id = 412; UPDATE t1 SET b1 = 0, t="2006-02-22" WHERE id = 412;
--disable_query_log
select "--- Check the update on master --" as ""; --echo --- Check the update on master ---
--enable_query_log
SELECT id,hex(b1),vc,bc,d,f,total,y,t FROM t1 WHERE id = 412; SELECT id,hex(b1),vc,bc,d,f,total,y,t FROM t1 WHERE id = 412;
# Must give injector thread a little time to get update # Must give injector thread a little time to get update
# into the binlog other wise we will miss the update. # into the binlog other wise we will miss the update.
sleep 3; sleep 3;
sync_slave_with_master; sync_slave_with_master;
--disable_query_log --echo --- Check Update on slave ---
select "--- Check Update on slave --" as "";
--enable_query_log
SELECT id,hex(b1),vc,bc,d,f,total,y,t FROM t1 WHERE id = 412; SELECT id,hex(b1),vc,bc,d,f,total,y,t FROM t1 WHERE id = 412;
connection master; connection master;
--disable_query_log --echo --- Remove a record from t1 on master ---
select "--- Remove a record from t1 on master --" as "";
--enable_query_log
DELETE FROM t1 WHERE id = 42; DELETE FROM t1 WHERE id = 42;
--disable_query_log
select "--- Show current count on master for t1 --" as ""; --echo --- Show current count on master for t1 ---
--enable_query_log
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
sync_slave_with_master; sync_slave_with_master;
--disable_query_log --echo --- Show current count on slave for t1 ---
select "--- Show current count on slave for t1 --" as "";
--enable_query_log
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
connection master; connection master;
DELETE FROM t1; DELETE FROM t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment