Bug #44639 | mysqlcheck wants REPAIR TABLE for InnoDB tables | ||
---|---|---|---|
Submitted: | 4 May 2009 11:31 | Modified: | 6 May 2009 9:47 |
Reporter: | Susanne Ebrecht | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[4 May 2009 11:31]
Susanne Ebrecht
[4 May 2009 12:34]
Simon Mudd
Also worth commenting. We are using MySQL rpms where this issue occurred. So we had a working 5.0 instance. We stop it and upgrade to 5.1. We run mysql_upgrade which tells us that we need to REPAIR the table, but this doesn't work (for innobase). Further investigation shows that it's probably necessary to actually dump the table contents (from 5.0), but we're now running the 5.1 binaries so we need to stop mysql again and reinstall the 5.0 binaries in order to dump the data. Suggestion (1): create a pre-upgrade script which will warn users of situations like this so that they can prepare BEFORE doing the upgrade. Suggestion (2): in the mysql_upgrade script do NOT recommend using REPAIR table if it is not going to work. Innodb tables are "normal" so the software should really be able to explain the necessary steps. 1. downgrade to 5.0. 2. dump innodb tables 3. upgrade back to 5.1. 4. reload dumps of previous tables. Failing this point to documentation which explains the issue and how to resolve it.
[6 May 2009 9:11]
Sveta Smirnova
Looks like duplicate of bug #42563
[6 May 2009 9:18]
Susanne Ebrecht
You are right. This is a duplicate of bug #42563