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
f291bb14
Commit
f291bb14
authored
Mar 30, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fix
parent
dd63478a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
mysql-test/r/grant2.result
mysql-test/r/grant2.result
+1
-0
mysql-test/t/grant2.test
mysql-test/t/grant2.test
+6
-6
No files found.
mysql-test/r/grant2.result
View file @
f291bb14
...
...
@@ -59,6 +59,7 @@ current_user()
mysqltest_1@localhost
show databases;
Database
information_schema
mysqltest_1
test
grant all privileges on `mysqltest_1`.* to mysqltest_1@localhost with grant option;
...
...
mysql-test/t/grant2.test
View file @
f291bb14
...
...
@@ -267,22 +267,22 @@ drop user '%@a'@'a';
#
create
user
mysqltest_2
@
localhost
;
grant
create
user
on
*.*
to
mysqltest_2
@
localhost
;
connect
(
user
2
,
localhost
,
mysqltest_2
,,);
connection
user
2
;
connect
(
user
3
,
localhost
,
mysqltest_2
,,);
connection
user
3
;
--
error
1142
select
host
,
user
,
password
from
mysql
.
user
where
user
like
'mysqltest_%'
order
by
host
,
user
,
password
;
create
user
mysqltest_A
@
'%'
;
rename
user
mysqltest_A
@
'%'
to
mysqltest_B
@
'%'
;
drop
user
mysqltest_B
@
'%'
;
disconnect
user
2
;
disconnect
user
3
;
connection
default
;
drop
user
mysqltest_2
@
localhost
;
#
# INSERT/UPDATE/DELETE is ok too
create
user
mysqltest_3
@
localhost
;
grant
INSERT
,
DELETE
,
UPDATE
on
mysql
.*
to
mysqltest_3
@
localhost
;
connect
(
user
3
,
localhost
,
mysqltest_3
,,);
connection
user
3
;
connect
(
user
4
,
localhost
,
mysqltest_3
,,);
connection
user
4
;
show
grants
;
--
error
1142
select
host
,
user
,
password
from
mysql
.
user
where
user
like
'mysqltest_%'
order
by
host
,
user
,
password
;
...
...
@@ -290,7 +290,7 @@ insert into mysql.user set host='%', user='mysqltest_B';
create
user
mysqltest_A
@
'%'
;
rename
user
mysqltest_B
@
'%'
to
mysqltest_C
@
'%'
;
drop
user
mysqltest_C
@
'%'
;
disconnect
user
3
;
disconnect
user
4
;
connection
default
;
drop
user
mysqltest_3
@
localhost
;
#
...
...
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