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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2297b865
Commit
2297b865
authored
Jan 06, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge jwinstead@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/jwinstead2/mysql-4.1-clean
parents
fd243376
57703563
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
7 deletions
+32
-7
scripts/mysql_fix_privilege_tables.sql
scripts/mysql_fix_privilege_tables.sql
+32
-7
No files found.
scripts/mysql_fix_privilege_tables.sql
View file @
2297b865
...
...
@@ -9,13 +9,38 @@
-- this sql script.
-- On windows you should do 'mysql --force mysql < mysql_fix_privilege_tables.sql'
ALTER
TABLE
user
type
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
db
type
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
host
type
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
func
type
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
columns_priv
type
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
tables_priv
type
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
user
change
Password
Password
char
(
41
)
binary
not
null
;
-- Convert all tables to UTF-8 with binary collation
-- and reset all char columns to correct width
ALTER
TABLE
user
MODIFY
Host
char
(
60
)
NOT
NULL
default
''
,
MODIFY
User
char
(
16
)
NOT
NULL
default
''
,
MODIFY
Password
char
(
41
)
NOT
NULL
default
''
,
ENGINE
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
db
MODIFY
Host
char
(
60
)
NOT
NULL
default
''
,
MODIFY
Db
char
(
64
)
NOT
NULL
default
''
,
MODIFY
User
char
(
16
)
NOT
NULL
default
''
,
ENGINE
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
host
MODIFY
Host
char
(
60
)
NOT
NULL
default
''
,
MODIFY
Db
char
(
64
)
NOT
NULL
default
''
,
ENGINE
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
func
ENGINE
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
columns_priv
MODIFY
Host
char
(
60
)
NOT
NULL
default
''
,
MODIFY
Db
char
(
64
)
NOT
NULL
default
''
,
MODIFY
User
char
(
16
)
NOT
NULL
default
''
,
MODIFY
Table_name
char
(
64
)
NOT
NULL
default
''
,
MODIFY
Column_name
char
(
64
)
NOT
NULL
default
''
,
ENGINE
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
tables_priv
MODIFY
Host
char
(
60
)
NOT
NULL
default
''
,
MODIFY
Db
char
(
64
)
NOT
NULL
default
''
,
MODIFY
User
char
(
16
)
NOT
NULL
default
''
,
MODIFY
Table_name
char
(
64
)
NOT
NULL
default
''
,
MODIFY
Grantor
char
(
77
)
NOT
NULL
default
''
,
ENGINE
=
MyISAM
,
CONVERT
TO
CHARACTER
SET
utf8
COLLATE
utf8_bin
;
ALTER
TABLE
user
add
File_priv
enum
(
'N'
,
'Y'
)
NOT
NULL
;
CREATE
TABLE
IF
NOT
EXISTS
func
(
name
char
(
64
)
binary
DEFAULT
''
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