Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5.37, 10.0.10
-
None
-
None
Description
mysql_upgrade is supposed to be a no-op on databases that are fully upgraded already. But scripts/mysql_system_tables_fix.sql has lots of old statements including those that try to modify User column in different tables to be char(16) instead of char(80). That breaks databases that already have users with names longer than 16 characters.
In the attachment is a patch that fixes the problem (with a test).
Hi Pavel,
Thanks.
The bug has been already fixed by this commit: http://bazaar.launchpad.net/~maria-captains/maria/10.0/revision/4148 (there were a couple more lines that needed fixing).
And we also have the open task
MDEV-6069to remove redundant ALTERs from the script.However, there was no test in that commit, which of course is wrong. Thanks for providing one.