Commit aacbe21c authored by unknown's avatar unknown

Test fix

parent 0f3bc4cd
...@@ -7,40 +7,40 @@ start slave; ...@@ -7,40 +7,40 @@ start slave;
**** On Master **** **** On Master ****
CREATE USER dummy@localhost; CREATE USER dummy@localhost;
CREATE USER dummy1@localhost, dummy2@localhost; CREATE USER dummy1@localhost, dummy2@localhost;
SELECT user, host FROM mysql.user; SELECT user, host FROM mysql.user WHERE user != 'root';
user host user host
root 127.0.0.1
dummy localhost dummy localhost
dummy1 localhost dummy1 localhost
dummy2 localhost dummy2 localhost
root localhost SELECT COUNT(*) FROM mysql.user;
root romeo.kindahl.net COUNT(*)
6
**** On Slave **** **** On Slave ****
SELECT user,host FROM mysql.user; SELECT user,host FROM mysql.user WHERE user != 'root';
user host user host
root 127.0.0.1
dummy localhost dummy localhost
dummy1 localhost dummy1 localhost
dummy2 localhost dummy2 localhost
root localhost SELECT COUNT(*) FROM mysql.user;
root romeo.kindahl.net COUNT(*)
6
**** On Master **** **** On Master ****
DROP USER nonexisting@localhost; DROP USER nonexisting@localhost;
ERROR HY000: Operation DROP USER failed for 'nonexisting'@'localhost' ERROR HY000: Operation DROP USER failed for 'nonexisting'@'localhost'
DROP USER nonexisting@localhost, dummy@localhost; DROP USER nonexisting@localhost, dummy@localhost;
ERROR HY000: Operation DROP USER failed for 'nonexisting'@'localhost' ERROR HY000: Operation DROP USER failed for 'nonexisting'@'localhost'
DROP USER dummy1@localhost, dummy2@localhost; DROP USER dummy1@localhost, dummy2@localhost;
SELECT user, host FROM mysql.user; SELECT user, host FROM mysql.user WHERE user != 'root';
user host user host
root 127.0.0.1 SELECT COUNT(*) FROM mysql.user;
root localhost COUNT(*)
root romeo.kindahl.net 3
**** On Slave **** **** On Slave ****
SELECT user,host FROM mysql.user; SELECT user,host FROM mysql.user WHERE user != 'root';
user host user host
root 127.0.0.1 SELECT COUNT(*) FROM mysql.user;
root localhost COUNT(*)
root romeo.kindahl.net 3
SHOW SLAVE STATUS; SHOW SLAVE STATUS;
Slave_IO_State # Slave_IO_State #
Master_Host 127.0.0.1 Master_Host 127.0.0.1
......
...@@ -9,10 +9,12 @@ connection master; ...@@ -9,10 +9,12 @@ connection master;
CREATE USER dummy@localhost; CREATE USER dummy@localhost;
CREATE USER dummy1@localhost, dummy2@localhost; CREATE USER dummy1@localhost, dummy2@localhost;
SELECT user, host FROM mysql.user; SELECT user, host FROM mysql.user WHERE user != 'root'; # root host non-determ
SELECT COUNT(*) FROM mysql.user;
sync_slave_with_master; sync_slave_with_master;
--echo **** On Slave **** --echo **** On Slave ****
SELECT user,host FROM mysql.user; SELECT user,host FROM mysql.user WHERE user != 'root'; # root host non-determ
SELECT COUNT(*) FROM mysql.user;
--echo **** On Master **** --echo **** On Master ****
connection master; connection master;
...@@ -28,10 +30,12 @@ DROP USER nonexisting@localhost, dummy@localhost; ...@@ -28,10 +30,12 @@ DROP USER nonexisting@localhost, dummy@localhost;
# All users exist # All users exist
DROP USER dummy1@localhost, dummy2@localhost; DROP USER dummy1@localhost, dummy2@localhost;
SELECT user, host FROM mysql.user; SELECT user, host FROM mysql.user WHERE user != 'root'; # root host non-determ
SELECT COUNT(*) FROM mysql.user;
sync_slave_with_master; sync_slave_with_master;
--echo **** On Slave **** --echo **** On Slave ****
SELECT user,host FROM mysql.user; SELECT user,host FROM mysql.user WHERE user != 'root'; # root host non-determ
SELECT COUNT(*) FROM mysql.user;
--replace_result $MASTER_MYPORT MASTER_PORT --replace_result $MASTER_MYPORT MASTER_PORT
--replace_column 1 # 8 # 9 # 23 # 33 # --replace_column 1 # 8 # 9 # 23 # 33 #
......
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