Bug #40284 | Upgrading from mysql 4.x to 5.x and running repair table causes odd behavior | ||
---|---|---|---|
Submitted: | 23 Oct 2008 18:13 | Modified: | 13 Apr 2009 9:35 |
Reporter: | Nathan March | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S2 (Serious) |
Version: | 5.0.67 | OS: | Linux (Gentoo) |
Assigned to: | CPU Architecture: | Any |
[23 Oct 2008 18:13]
Nathan March
[23 Oct 2008 18:25]
Sveta Smirnova
Thank you for the report. Using REPAIR ... USE_FRM when upgrading major version is strictly not recommended and can lead to unexpected results. Regarding to check problem please read http://dev.mysql.com/doc/refman/5.0/en/upgrading-from-4-1.html for list of incompatible changes and if you are sure original table does not contain such fields please provide output of SHOW CREATE TABLE for the problem table.
[23 Oct 2008 18:31]
Nathan March
The use_frm repair is performing as expected, with the exception that it seems to be marking the table as OK afterwards. From: http://dev.mysql.com/doc/refman/5.0/en/repair-table.html Caution As of MySQL 5.0.62, if you use USE_FRM and your table was created by a different version of the MySQL server than the one you are currently running, REPAIR TABLE will not attempt to repair the table. In this case, the result set returned by REPAIR TABLE contains a line with a Msg_type value of error and a Msg_text value of Failed repairing incompatible .FRM file. So the error that it's returning is correct and valid, but it shouldn't be marking the table as clean after its failed to do the repair.
[13 Mar 2009 9:35]
Sveta Smirnova
Thank you for the feedback. > So the error that it's returning is correct and valid, but it shouldn't be marking the > table as clean after its failed to do the repair. But when it marks table as clean? Do you mean last row in the output following or what? mysql> repair table `ADMINERRORS`; +--------------------+--------+----------+------------------------------------------------ --------------------------+ | Table | Op | Msg_type | Msg_text | +--------------------+--------+----------+------------------------------------------------ --------------------------+ | nathan.ADMINERRORS | repair | Error | Table './nathan/ADMINERRORS' is marked as crashed and should be repaired | | nathan.ADMINERRORS | repair | Error | Table 'ADMINERRORS' is marked as crashed and should be repaired | | nathan.ADMINERRORS | repair | status | Table is already up to date | +--------------------+--------+----------+------------------------------------------------ --------------------------+ 3 rows in set (0.00 sec)
[13 Apr 2009 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".