Commit 65866b7b authored by unknown's avatar unknown

Make test case for bug#21215repeateble by calling "reset master"

parent 98157e78
...@@ -2878,13 +2878,14 @@ drop database mysqldump_dbb; ...@@ -2878,13 +2878,14 @@ drop database mysqldump_dbb;
use test; use test;
create user mysqltest_1; create user mysqltest_1;
create table t1(a int, b varchar(34)); create table t1(a int, b varchar(34));
reset master;
mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need the RELOAD privilege for this operation (1227) mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need the RELOAD privilege for this operation (1227)
mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need the RELOAD privilege for this operation (1227) mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need the RELOAD privilege for this operation (1227)
grant RELOAD on *.* to mysqltest_1@localhost; grant RELOAD on *.* to mysqltest_1@localhost;
mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need the SUPER,REPLICATION CLIENT privilege for this operation (1227) mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need the SUPER,REPLICATION CLIENT privilege for this operation (1227)
mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need the SUPER,REPLICATION CLIENT privilege for this operation (1227) mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need the SUPER,REPLICATION CLIENT privilege for this operation (1227)
grant REPLICATION CLIENT on *.* to mysqltest_1@localhost; grant REPLICATION CLIENT on *.* to mysqltest_1@localhost;
CHANGE MASTER TO MASTER_LOG_FILE='master-bin.000003', MASTER_LOG_POS=9227; CHANGE MASTER TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=537;
CREATE TABLE `t1` ( CREATE TABLE `t1` (
`a` int(11) default NULL, `a` int(11) default NULL,
`b` varchar(34) default NULL `b` varchar(34) default NULL
......
...@@ -1276,6 +1276,9 @@ use test; ...@@ -1276,6 +1276,9 @@ use test;
create user mysqltest_1; create user mysqltest_1;
create table t1(a int, b varchar(34)); create table t1(a int, b varchar(34));
# To get consistent output, reset the master, starts over from first log
reset master;
# Execute mysqldump, will fail on FLUSH TABLES # Execute mysqldump, will fail on FLUSH TABLES
--error 2 --error 2
--exec $MYSQL_DUMP --compact --master-data -u mysqltest_1 test 2>&1 --exec $MYSQL_DUMP --compact --master-data -u mysqltest_1 test 2>&1
......
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