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
b976b9bf
Commit
b976b9bf
authored
Apr 21, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21244 mysql_upgrade creating empty global_priv table
support upgrades from 5.2 privilege tables
parent
c2db9397
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
mysql-test/main/mysql_upgrade.result
mysql-test/main/mysql_upgrade.result
+8
-0
mysql-test/main/mysql_upgrade.test
mysql-test/main/mysql_upgrade.test
+13
-0
scripts/mysql_system_tables_fix.sql
scripts/mysql_system_tables_fix.sql
+1
-0
No files found.
mysql-test/main/mysql_upgrade.result
View file @
b976b9bf
...
...
@@ -630,4 +630,12 @@ drop table mysql.innodb_index_stats, mysql.innodb_table_stats;
# mysql_upgrade --force --silent 2>&1
drop table mysql.global_priv;
rename table mysql.global_priv_bak to mysql.global_priv;
drop view mysql.user_bak;
alter table mysql.user change authentication_string auth_string text collate utf8_bin not null;
# mysql_upgrade --force --silent 2>&1
select count(*) from mysql.global_priv;
count(*)
4
drop table mysql.global_priv;
rename table mysql.global_priv_bak to mysql.global_priv;
# End of 10.4 tests
mysql-test/main/mysql_upgrade.test
View file @
b976b9bf
...
...
@@ -282,4 +282,17 @@ drop table mysql.innodb_index_stats, mysql.innodb_table_stats;
drop
table
mysql
.
global_priv
;
rename
table
mysql
.
global_priv_bak
to
mysql
.
global_priv
;
#
# MDEV-21244 mysql_upgrade creating empty global_priv table
#
--
source
include
/
switch_to_mysql_user
.
inc
drop
view
mysql
.
user_bak
;
alter
table
mysql
.
user
change
authentication_string
auth_string
text
collate
utf8_bin
not
null
;
--
echo
# mysql_upgrade --force --silent 2>&1
--
exec
$MYSQL_UPGRADE
--
force
--
silent
2
>&
1
--
remove_file
$MYSQLD_DATADIR
/
mysql_upgrade_info
select
count
(
*
)
from
mysql
.
global_priv
;
drop
table
mysql
.
global_priv
;
rename
table
mysql
.
global_priv_bak
to
mysql
.
global_priv
;
--
echo
# End of 10.4 tests
scripts/mysql_system_tables_fix.sql
View file @
b976b9bf
...
...
@@ -648,6 +648,7 @@ UPDATE user SET Delete_history_priv = Super_priv WHERE @had_user_delete_history_
ALTER
TABLE
user
ADD
plugin
char
(
64
)
CHARACTER
SET
latin1
DEFAULT
''
NOT
NULL
,
ADD
authentication_string
TEXT
NOT
NULL
;
ALTER
TABLE
user
CHANGE
auth_string
authentication_string
TEXT
NOT
NULL
;
ALTER
TABLE
user
MODIFY
plugin
char
(
64
)
CHARACTER
SET
latin1
DEFAULT
''
NOT
NULL
,
MODIFY
authentication_string
TEXT
NOT
NULL
;
ALTER
TABLE
user
ADD
password_expired
ENUM
(
'N'
,
'Y'
)
COLLATE
utf8_general_ci
DEFAULT
'N'
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