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
f0933e23
Commit
f0933e23
authored
Apr 19, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into xiphis.org:/.amd_mnt/bk.anubis/host/work-acurtis/bug9496
parents
9e7028c8
fb706430
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
39 deletions
+7
-39
scripts/mysql_fix_privilege_tables.sql
scripts/mysql_fix_privilege_tables.sql
+7
-39
No files found.
scripts/mysql_fix_privilege_tables.sql
View file @
f0933e23
...
...
@@ -9,7 +9,7 @@
-- this sql script.
-- On windows you should do 'mysql --force mysql < mysql_fix_privilege_tables.sql'
set
table_typ
e
=
MyISAM
;
set
storage_engin
e
=
MyISAM
;
CREATE
TABLE
IF
NOT
EXISTS
func
(
name
char
(
64
)
binary
DEFAULT
''
NOT
NULL
,
...
...
@@ -64,7 +64,7 @@ CREATE TABLE IF NOT EXISTS tables_priv (
ALTER
TABLE
tables_priv
modify
Table_priv
set
(
'Select'
,
'Insert'
,
'Update'
,
'Delete'
,
'Create'
,
'Drop'
,
'Grant'
,
'References'
,
'Index'
,
'Alter'
)
COLLATE
utf8_general_ci
DEFAULT
''
NOT
NULL
,
modify
Column_priv
set
(
'Select'
,
'Insert'
,
'Update'
,
'References'
)
COLLATE
utf8_general_ci
DEFAULT
''
NOT
NULL
;
ALTER
TABLE
procs_priv
type
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
procs_priv
ENGINE
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
procs_priv
modify
Proc_priv
set
(
'Execute'
,
'Alter Routine'
,
'Grant'
)
COLLATE
utf8_general_ci
DEFAULT
''
NOT
NULL
;
...
...
@@ -321,19 +321,19 @@ KEY Grantor (Grantor)
CREATE
TABLE
IF
NOT
EXISTS
help_topic
(
help_topic_id
int
unsigned
not
null
,
name
char
(
64
)
not
null
,
name
var
char
(
64
)
not
null
,
help_category_id
smallint
unsigned
not
null
,
description
text
not
null
,
example
text
not
null
,
url
char
(
128
)
not
null
,
url
var
char
(
128
)
not
null
,
primary
key
(
help_topic_id
),
unique
index
(
name
)
)
CHARACTER
SET
utf8
comment
=
'help topics'
;
CREATE
TABLE
IF
NOT
EXISTS
help_category
(
help_category_id
smallint
unsigned
not
null
,
name
char
(
64
)
not
null
,
name
var
char
(
64
)
not
null
,
parent_category_id
smallint
unsigned
null
,
url
char
(
128
)
not
null
,
url
var
char
(
128
)
not
null
,
primary
key
(
help_category_id
),
unique
index
(
name
)
)
CHARACTER
SET
utf8
comment
=
'help categories'
;
...
...
@@ -346,7 +346,7 @@ primary key (help_keyword_id, help_topic_id)
CREATE
TABLE
IF
NOT
EXISTS
help_keyword
(
help_keyword_id
int
unsigned
not
null
,
name
char
(
64
)
not
null
,
name
var
char
(
64
)
not
null
,
primary
key
(
help_keyword_id
),
unique
index
(
name
)
)
CHARACTER
SET
utf8
comment
=
'help keywords'
;
...
...
@@ -493,35 +493,3 @@ ALTER TABLE proc MODIFY name char(64) DEFAULT '' NOT NULL,
'
NO_AUTO_CREATE_USER
',
'
HIGH_NOT_PRECEDENCE
'
) DEFAULT 0 NOT NULL;
#
# Change all varchar fields in privilege tables to CHAR, to ensure that
# we can use the privilege tables in MySQL 4.1
# Note that for this hack to work, we must change all CHAR() columns at
# the same time
#
ALTER TABLE mysql.user
modify Host char(60) binary DEFAULT
''
NOT NULL,
modify User char(16) binary DEFAULT
''
NOT NULL,
modify Password char(41) binary DEFAULT
''
NOT NULL;
ALTER TABLE mysql.db
modify Host char(60) binary DEFAULT
''
NOT NULL,
modify Db char(64) binary DEFAULT
''
NOT NULL,
modify User char(16) binary DEFAULT
''
NOT NULL;
ALTER TABLE mysql.host
modify Host char(60) binary DEFAULT
''
NOT NULL,
modify Db char(64) binary DEFAULT
''
NOT NULL;
ALTER TABLE help_topic
modify name char(64) not null,
modify url char(128) not null;
ALTER TABLE help_category
modify name char(64) not null,
modify url char(128) not null;
ALTER TABLE help_keyword
modify name char(64) not null;
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