Loading mysql-test/r/mysqldump.result +2 −1 Original line number Diff line number Diff line Loading @@ -2878,13 +2878,14 @@ drop database mysqldump_dbb; use test; create user mysqltest_1; 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) 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) 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` ( `a` int(11) default NULL, `b` varchar(34) default NULL Loading mysql-test/t/mysqldump.test +3 −0 Original line number Diff line number Diff line Loading @@ -1276,6 +1276,9 @@ use test; create user mysqltest_1; 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 --error 2 --exec $MYSQL_DUMP --compact --master-data -u mysqltest_1 test 2>&1 Loading Loading
mysql-test/r/mysqldump.result +2 −1 Original line number Diff line number Diff line Loading @@ -2878,13 +2878,14 @@ drop database mysqldump_dbb; use test; create user mysqltest_1; 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) 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) 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` ( `a` int(11) default NULL, `b` varchar(34) default NULL Loading
mysql-test/t/mysqldump.test +3 −0 Original line number Diff line number Diff line Loading @@ -1276,6 +1276,9 @@ use test; create user mysqltest_1; 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 --error 2 --exec $MYSQL_DUMP --compact --master-data -u mysqltest_1 test 2>&1 Loading