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
68a01120
Commit
68a01120
authored
Feb 24, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysqldev@production.mysql.com:my/mysql-5.1-release
into lmy004.:/work/mysql-5.1-release
parents
adc97236
5ac46bb9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
scripts/mysql_fix_privilege_tables.sh
scripts/mysql_fix_privilege_tables.sh
+1
-5
scripts/mysql_fix_privilege_tables.sql
scripts/mysql_fix_privilege_tables.sql
+5
-0
sql/sql_acl.cc
sql/sql_acl.cc
+2
-2
No files found.
scripts/mysql_fix_privilege_tables.sh
View file @
68a01120
...
@@ -163,11 +163,7 @@ s_echo()
...
@@ -163,11 +163,7 @@ s_echo()
}
}
s_echo
"This script updates all the mysql privilege tables to be usable by"
s_echo
"This script updates all the mysql privilege tables to be usable by"
s_echo
"MySQL 4.0 and above."
s_echo
"MySQL 5.1 and above."
s_echo
""
s_echo
"This is needed if you want to use the new GRANT functions,"
s_echo
"CREATE AGGREGATE FUNCTION, stored procedures, or"
s_echo
"more secure passwords in 4.1"
s_echo
""
s_echo
""
if
test
$verbose
=
1
if
test
$verbose
=
1
...
...
scripts/mysql_fix_privilege_tables.sql
View file @
68a01120
...
@@ -630,6 +630,9 @@ CREATE TABLE event (
...
@@ -630,6 +630,9 @@ CREATE TABLE event (
# EVENT privilege
# EVENT privilege
#
#
SET @hadEventPriv := 0;
SELECT @hadEventPriv :=1 FROM user WHERE Event_priv LIKE '
%
';
ALTER TABLE user add Event_priv enum('
N
','
Y
') character set utf8 DEFAULT '
N
' NOT NULL AFTER Create_user_priv;
ALTER TABLE user add Event_priv enum('
N
','
Y
') character set utf8 DEFAULT '
N
' NOT NULL AFTER Create_user_priv;
ALTER TABLE db add Event_priv enum('
N
','
Y
') character set utf8 DEFAULT '
N
' NOT NULL;
ALTER TABLE db add Event_priv enum('
N
','
Y
') character set utf8 DEFAULT '
N
' NOT NULL;
ALTER TABLE event DROP PRIMARY KEY;
ALTER TABLE event DROP PRIMARY KEY;
...
@@ -667,6 +670,8 @@ ALTER TABLE event ADD sql_mode
...
@@ -667,6 +670,8 @@ ALTER TABLE event ADD sql_mode
'
HIGH_NOT_PRECEDENCE
'
'
HIGH_NOT_PRECEDENCE
'
) DEFAULT
''
NOT NULL AFTER on_completion;
) DEFAULT
''
NOT NULL AFTER on_completion;
UPDATE user SET Event_priv=Super_priv WHERE @hadEventPriv = 0;
--
--
-- TRIGGER privilege
-- TRIGGER privilege
--
--
...
...
sql/sql_acl.cc
View file @
68a01120
...
@@ -471,10 +471,10 @@ static my_bool acl_load(THD *thd, TABLE_LIST *tables)
...
@@ -471,10 +471,10 @@ static my_bool acl_load(THD *thd, TABLE_LIST *tables)
/*
/*
if it is pre 5.1.
4
privilege table then map CREATE privilege on
if it is pre 5.1.
6
privilege table then map CREATE privilege on
CREATE|ALTER|DROP|EXECUTE EVENT
CREATE|ALTER|DROP|EXECUTE EVENT
*/
*/
if
(
table
->
s
->
fields
<=
37
&&
(
user
.
access
&
CREATE
_ACL
))
if
(
table
->
s
->
fields
<=
37
&&
(
user
.
access
&
SUPER
_ACL
))
user
.
access
|=
EVENT_ACL
;
user
.
access
|=
EVENT_ACL
;
/*
/*
...
...
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