mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Make test case for bug#21215repeateble by calling "reset master"
This commit is contained in:
@ -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;
|
|||||||
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
|
||||||
|
Reference in New Issue
Block a user