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
36869043
Commit
36869043
authored
May 02, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Resolve merge of fix for #8166.
parents
5bd0fabd
21caf15b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
mysql-test/r/system_mysql_db.result
mysql-test/r/system_mysql_db.result
+3
-0
scripts/mysql_create_system_tables.sh
scripts/mysql_create_system_tables.sh
+3
-0
scripts/mysql_fix_privilege_tables.sql
scripts/mysql_fix_privilege_tables.sql
+4
-0
No files found.
mysql-test/r/system_mysql_db.result
View file @
36869043
...
...
@@ -63,6 +63,9 @@ host CREATE TABLE `host` (
`Lock_tables_priv` enum('N','Y') character set utf8 NOT NULL default 'N',
`Create_view_priv` enum('N','Y') character set utf8 NOT NULL default 'N',
`Show_view_priv` enum('N','Y') character set utf8 NOT NULL default 'N',
`Create_routine_priv` enum('N','Y') character set utf8 NOT NULL default 'N',
`Alter_routine_priv` enum('N','Y') character set utf8 NOT NULL default 'N',
`Execute_priv` enum('N','Y') character set utf8 NOT NULL default 'N',
PRIMARY KEY (`Host`,`Db`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Host privileges; Merged with database privileges'
show create table user;
...
...
scripts/mysql_create_system_tables.sh
View file @
36869043
...
...
@@ -105,6 +105,9 @@ then
c_h
=
"
$c_h
Lock_tables_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
c_h
=
"
$c_h
Create_view_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
c_h
=
"
$c_h
Show_view_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
c_h
=
"
$c_h
Create_routine_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
c_h
=
"
$c_h
Alter_routine_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
c_h
=
"
$c_h
Execute_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
c_h
=
"
$c_h
PRIMARY KEY Host (Host,Db)"
c_h
=
"
$c_h
) engine=MyISAM"
c_h
=
"
$c_h
CHARACTER SET utf8 COLLATE utf8_bin"
...
...
scripts/mysql_fix_privilege_tables.sql
View file @
36869043
...
...
@@ -271,21 +271,25 @@ SELECT @hadCreateRoutinePriv:=1 FROM user WHERE Create_routine_priv LIKE '%';
#
Create
PROCEDUREs
privileges
(
v5
.
0
)
#
ALTER
TABLE
db
ADD
Create_routine_priv
enum
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
NOT
NULL
AFTER
Show_view_priv
;
ALTER
TABLE
host
ADD
Create_routine_priv
enum
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
NOT
NULL
AFTER
Show_view_priv
;
ALTER
TABLE
user
ADD
Create_routine_priv
enum
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
NOT
NULL
AFTER
Show_view_priv
;
#
#
Alter
PROCEDUREs
privileges
(
v5
.
0
)
#
ALTER
TABLE
db
ADD
Alter_routine_priv
enum
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
NOT
NULL
AFTER
Create_routine_priv
;
ALTER
TABLE
host
ADD
Alter_routine_priv
enum
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
NOT
NULL
AFTER
Create_routine_priv
;
ALTER
TABLE
user
ADD
Alter_routine_priv
enum
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
NOT
NULL
AFTER
Create_routine_priv
;
ALTER
TABLE
db
ADD
Execute_priv
enum
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
NOT
NULL
AFTER
Alter_routine_priv
;
ALTER
TABLE
host
ADD
Execute_priv
enum
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
NOT
NULL
AFTER
Alter_routine_priv
;
#
#
Assign
create
/
alter
routine
privileges
to
people
who
have
create
privileges
#
UPDATE
user
SET
Create_routine_priv
=
Create_priv
,
Alter_routine_priv
=
Alter_priv
where
user
<>
""
AND
@
hadCreateRoutinePriv
=
0
;
UPDATE
db
SET
Create_routine_priv
=
Create_priv
,
Alter_routine_priv
=
Alter_priv
,
Execute_priv
=
Select_priv
where
user
<>
""
AND
@
hadCreateRoutinePriv
=
0
;
UPDATE
host
SET
Create_routine_priv
=
Create_priv
,
Alter_routine_priv
=
Alter_priv
,
Execute_priv
=
Select_priv
where
@
hadCreateRoutinePriv
=
0
;
#
#
Add
max_user_connections
resource
limit
...
...
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