Bug #76264 | Safest and most common upgrade strategy broken by 5.7.6 | ||
---|---|---|---|
Submitted: | 11 Mar 2015 16:39 | Modified: | 13 Jun 2015 7:42 |
Reporter: | Justin Swanhart | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.7.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[11 Mar 2015 16:39]
Justin Swanhart
[12 Mar 2015 9:08]
Arjen Lentz
There are a number of different options on how to make this work. Justin provided one way already. A dump conversion tool could be another, or an updated mysqldump in the 5.6 range that can adjust on-the-fly. Critically, changes such as these should be considered with the real world users in mind - many things sound just fine in the lab, but don't work out so well in the ugly real world. It's really not cool to send things into the world without these issues already having been resolved. thanks
[15 Mar 2015 19:53]
Paul DuBois
The changelog text quoted at the beginning of the bug report was incorrect. My fault: I wrote it based on a misapprehension of the implications of the change to the mysql.user table. It is in fact possible to reload an old (pre-5.7.6) dump file. I've amended the release notes: The change in mysql.user table structure has compatibility implications for upgrading and downgrading: * You can perform a binary (in-place) upgrade to MySQL 5.7.6 or later and run mysql_upgrade to migrate the Password column contents to the authentication_string column. * If you plan to upgrade by loading a mysqldump dump file from an older (pre-5.7.6) MySQL installation, you must observe these conditions for the mysqldump command used to generate the file: * You must include the --add-drop-table option * You must not include the --flush-privileges option Load the pre-5.7.6 dump file into the 5.7.6 server before running mysql_upgrade.
[13 Jun 2015 7:42]
Justin Swanhart
Closing per last comment.