PDA

View Full Version : MySQL upgrade hosed existing tables...


SHtRO
10th May 2006, 06:42 PM
We recently upgraded a server here from FC3->FC5 via FC4. Did not get everything reconfigured in FC4, and went straight to FC5.

Not many problems until today, just had to reconfigure a few services (HTTPD, Dovecot).

However, many MySQL tables are now hosed. Simple queries like "SELECT * from TableName" fail with the error: "can't find file 'TableName' (error 2)"

Repairing and checking don't work and there are table files there. This does not happen on all tables, but on many and I would like to recover without rebuilding if possible.

More importantly, this is a serious bug.

icydog
10th May 2006, 07:32 PM
Uh oh. You are supposed to do mysqldump before upgrading. Perhaps you can try uninstalling mysql-server and installing the old version (whatever you used on FC3), reading the tables to do mysqldump, then installing the new one again and load the output of mysqldump into it.

SHtRO
11th May 2006, 01:07 AM

Yeah, the backup dumps worked well, but it was a real pain. I worry about this mainly because upgrades can happen automatically and certainly the tables shouldn't be "semi-available" and "irreparable" due to a simple upgrade. Just a real nuisance.

pete_1967
11th May 2006, 01:21 AM
You seriously tried to upgrade production database from one version to another with all databses live and expect all to work without hickups? Wow!