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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9f0b5092
Commit
9f0b5092
authored
Jan 10, 2006
by
aelkin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/usr_rh9/home/elkin.rh9/MySQL/mysql-5.0
parents
86e8958a
d7eb02f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
mysql-test/r/rpl_ignore_revoke.result
mysql-test/r/rpl_ignore_revoke.result
+28
-0
mysql-test/t/rpl_ignore_revoke-slave.opt
mysql-test/t/rpl_ignore_revoke-slave.opt
+1
-0
mysql-test/t/rpl_ignore_revoke.test
mysql-test/t/rpl_ignore_revoke.test
+43
-0
No files found.
mysql-test/r/rpl_ignore_revoke.result
0 → 100644
View file @
9f0b5092
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
grant select on *.* to 'user_foo'@'%' identified by 'user_foopass';
revoke select on *.* from 'user_foo'@'%';
select select_priv from mysql.user where user='user_foo' /* master:must be N */;
select_priv
N
grant select on *.* to 'user_foo'@'%' identified by 'user_foopass';
revoke select on *.* from 'user_foo'@'%';
select select_priv from mysql.user where user='user_foo' /* slave:must be N */;
select_priv
N
grant select on *.* to 'user_foo'@'%' identified by 'user_foopass';
select select_priv from mysql.user where user='user_foo' /* slave:must be Y */;
select_priv
Y
revoke select on *.* from 'user_foo';
select select_priv from mysql.user where user='user_foo' /* master:must be N */;
select_priv
N
select select_priv from mysql.user where user='user_foo' /* slave:must get Y */;
select_priv
Y
revoke select on *.* FROM 'user_foo';
mysql-test/t/rpl_ignore_revoke-slave.opt
0 → 100644
View file @
9f0b5092
--replicate-wild-ignore-table=mysql.%
mysql-test/t/rpl_ignore_revoke.test
0 → 100644
View file @
9f0b5092
# test verifies that REVOKE must not be replicated when
# slave server starts with --replicate-wild-ignore-table=mysql.%
# the option is set in rpl_ignore_revoke-slave.opt
# The first part of BUG#9483 for GRANT is checked by
# existed specific rpl_ignore_grant test case (BUG#980)
source
include
/
master
-
slave
.
inc
;
### CLEAN-UP: create an account and manually duplicate it on the slave
connection
master
;
grant
select
on
*.*
to
'user_foo'
@
'%'
identified
by
'user_foopass'
;
revoke
select
on
*.*
from
'user_foo'
@
'%'
;
select
select_priv
from
mysql
.
user
where
user
=
'user_foo'
/* master:must be N */
;
sync_slave_with_master
;
#connection slave;
grant
select
on
*.*
to
'user_foo'
@
'%'
identified
by
'user_foopass'
;
revoke
select
on
*.*
from
'user_foo'
@
'%'
;
select
select_priv
from
mysql
.
user
where
user
=
'user_foo'
/* slave:must be N */
;
### TEST
#connection slave;
grant
select
on
*.*
to
'user_foo'
@
'%'
identified
by
'user_foopass'
;
select
select_priv
from
mysql
.
user
where
user
=
'user_foo'
/* slave:must be Y */
;
connection
master
;
revoke
select
on
*.*
from
'user_foo'
;
select
select_priv
from
mysql
.
user
where
user
=
'user_foo'
/* master:must be N */
;
sync_slave_with_master
;
#connection slave;
select
select_priv
from
mysql
.
user
where
user
=
'user_foo'
/* slave:must get Y */
;
### CLEAN-UP
connection
slave
;
--
disable_abort_on_error
revoke
select
on
*.*
FROM
'user_foo'
;
--
enable_abort_on_error
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