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
92e9f24d
Commit
92e9f24d
authored
Nov 26, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-5.0
into mysql.com:/home/mydev/mysql-5.0-wl2050-new
parents
31e9caa0
2c2333e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
mysql-test/r/grant2.result
mysql-test/r/grant2.result
+6
-7
mysql-test/t/grant2.test
mysql-test/t/grant2.test
+6
-4
No files found.
mysql-test/r/grant2.result
View file @
92e9f24d
...
...
@@ -136,6 +136,10 @@ GRANT INSERT ON "test".* TO 'mysqltest_1'@'%'
GRANT UPDATE (c2) ON "test"."t2" TO 'mysqltest_1'@'%'
GRANT UPDATE ON "test"."t1" TO 'mysqltest_1'@'%'
drop user 'mysqltest_1', 'mysqltest_3';
grant all on test.t1 to 'mysqltest_1';
ERROR 42000: 'root'@'localhost' is not allowed to create new users
drop user 'mysqltest_1';
ERROR HY000: Operation DROP USER failed for 1 of the requested users
drop table t1, t2;
insert into mysql.db set user='mysqltest_1', db='%', host='%';
flush privileges;
...
...
@@ -197,7 +201,7 @@ GRANT SELECT ON "mysql".* TO '%@a'@'a'
drop user '%@a'@'a';
create user mysqltest_2@localhost;
grant usage on *.* to mysqltest_2@localhost with grant option;
select host,user,password from mysql.user order by host,user,password;
select host,user,password from mysql.user
where user like 'mysqltest_%'
order by host,user,password;
ERROR 42000: Access denied for user 'mysqltest_2'@'localhost' to database 'mysql'
create user mysqltest_A@'%';
rename user mysqltest_A@'%' to mysqltest_B@'%';
...
...
@@ -205,15 +209,10 @@ drop user mysqltest_B@'%';
drop user mysqltest_2@localhost;
create user mysqltest_3@localhost;
grant all privileges on mysql.* to mysqltest_3@localhost;
select host,user,password from mysql.user order by host,user,password;
select host,user,password from mysql.user
where user like 'mysqltest_%'
order by host,user,password;
host user password
% mysqltest_2 *BD447CBA355AF58578D3AE33BA2E2CD388BA08D1
127.0.0.1 root
chilla%
chilla% root
localhost
localhost mysqltest_3
localhost root
insert into mysql.user set host='%', user='mysqltest_B';
create user mysqltest_A@'%';
ERROR 42000: Access denied for user 'mysqltest_3'@'localhost' to database 'mysql'
...
...
mysql-test/t/grant2.test
View file @
92e9f24d
...
...
@@ -125,8 +125,10 @@ show grants for 'mysqltest_1';
drop
user
'mysqltest_1'
,
'mysqltest_3'
;
#
# Grant must not create user
#grant all on test.t1 to 'mysqltest_1';
#drop user 'mysqltest_1';
--
error
1211
grant
all
on
test
.
t1
to
'mysqltest_1'
;
--
error
1268
drop
user
'mysqltest_1'
;
#
# Cleanup
drop
table
t1
,
t2
;
...
...
@@ -198,7 +200,7 @@ grant usage on *.* to mysqltest_2@localhost with grant option;
connect
(
user2
,
localhost
,
mysqltest_2
,,);
connection
user2
;
--
error
1044
select
host
,
user
,
password
from
mysql
.
user
order
by
host
,
user
,
password
;
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
@
'%'
;
...
...
@@ -211,7 +213,7 @@ create user mysqltest_3@localhost;
grant
all
privileges
on
mysql
.*
to
mysqltest_3
@
localhost
;
connect
(
user3
,
localhost
,
mysqltest_3
,,);
connection
user3
;
select
host
,
user
,
password
from
mysql
.
user
order
by
host
,
user
,
password
;
select
host
,
user
,
password
from
mysql
.
user
where
user
like
'mysqltest_%'
order
by
host
,
user
,
password
;
insert
into
mysql
.
user
set
host
=
'%'
,
user
=
'mysqltest_B'
;
--
error
1044
create
user
mysqltest_A
@
'%'
;
...
...
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