Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
65866b7b
Commit
65866b7b
authored
Aug 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test case for bug#21215repeateble by calling "reset master"
parent
98157e78
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+2
-1
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+3
-0
No files found.
mysql-test/r/mysqldump.result
View file @
65866b7b
...
...
@@ -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.00000
3', MASTER_LOG_POS=922
7;
CHANGE MASTER TO MASTER_LOG_FILE='master-bin.00000
1', MASTER_LOG_POS=53
7;
CREATE TABLE `t1` (
`a` int(11) default NULL,
`b` varchar(34) default NULL
...
...
mysql-test/t/mysqldump.test
View file @
65866b7b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment