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
446297a5
Commit
446297a5
authored
Mar 01, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gweir@build.mysql.com:/home/bk/mysql-4.1
into greg-laptop.:C:/cygwin/bk/mysql-4.1
parents
9995a72b
5b8c512f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
mysql-test/r/grant.result
mysql-test/r/grant.result
+6
-0
mysql-test/t/grant.test
mysql-test/t/grant.test
+4
-0
sql/sql_acl.cc
sql/sql_acl.cc
+7
-2
No files found.
mysql-test/r/grant.result
View file @
446297a5
...
@@ -165,3 +165,9 @@ drop_user3@localhost, drop_user4@localhost;
...
@@ -165,3 +165,9 @@ drop_user3@localhost, drop_user4@localhost;
drop user drop_user1@localhost, drop_user2@localhost, drop_user3@localhost,
drop user drop_user1@localhost, drop_user2@localhost, drop_user3@localhost,
drop_user4@localhost;
drop_user4@localhost;
drop table t1;
drop table t1;
grant usage on *.* to mysqltest_1@localhost identified by "password";
grant select, update, insert on test.* to mysqltest@localhost;
show grants for mysqltest_1@localhost;
Grants for mysqltest_1@localhost
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' IDENTIFIED BY PASSWORD '*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19'
drop user mysqltest_1@localhost;
mysql-test/t/grant.test
View file @
446297a5
...
@@ -125,3 +125,7 @@ drop_user3@localhost, drop_user4@localhost;
...
@@ -125,3 +125,7 @@ drop_user3@localhost, drop_user4@localhost;
drop
user
drop_user1
@
localhost
,
drop_user2
@
localhost
,
drop_user3
@
localhost
,
drop
user
drop_user1
@
localhost
,
drop_user2
@
localhost
,
drop_user3
@
localhost
,
drop_user4
@
localhost
;
drop_user4
@
localhost
;
drop
table
t1
;
drop
table
t1
;
grant
usage
on
*.*
to
mysqltest_1
@
localhost
identified
by
"password"
;
grant
select
,
update
,
insert
on
test
.*
to
mysqltest
@
localhost
;
show
grants
for
mysqltest_1
@
localhost
;
drop
user
mysqltest_1
@
localhost
;
sql/sql_acl.cc
View file @
446297a5
...
@@ -829,8 +829,8 @@ static void acl_update_user(const char *user, const char *host,
...
@@ -829,8 +829,8 @@ static void acl_update_user(const char *user, const char *host,
acl_user
->
x509_subject
=
(
x509_subject
?
acl_user
->
x509_subject
=
(
x509_subject
?
strdup_root
(
&
mem
,
x509_subject
)
:
0
);
strdup_root
(
&
mem
,
x509_subject
)
:
0
);
}
}
if
(
password
)
set_user_salt
(
acl_user
,
password
,
password_len
);
set_user_salt
(
acl_user
,
password
,
password_len
);
/* search complete: */
/* search complete: */
break
;
break
;
}
}
...
@@ -1456,6 +1456,11 @@ static int replace_user_table(THD *thd, TABLE *table, const LEX_USER &combo,
...
@@ -1456,6 +1456,11 @@ static int replace_user_table(THD *thd, TABLE *table, const LEX_USER &combo,
store_record
(
table
,
record
[
1
]);
// Save copy for update
store_record
(
table
,
record
[
1
]);
// Save copy for update
if
(
combo
.
password
.
str
)
// If password given
if
(
combo
.
password
.
str
)
// If password given
table
->
field
[
2
]
->
store
(
password
,
password_len
,
&
my_charset_latin1
);
table
->
field
[
2
]
->
store
(
password
,
password_len
,
&
my_charset_latin1
);
else
if
(
!
rights
&&
!
revoke_grant
&&
thd
->
lex
->
ssl_type
==
SSL_TYPE_NOT_SPECIFIED
&&
!
thd
->
lex
->
mqh
.
bits
)
{
DBUG_RETURN
(
0
);
}
}
}
/* Update table columns with new privileges */
/* Update table columns with new privileges */
...
...
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