![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I recently moved my MySQL database from a failing server to a new one. To move, I used rsync to copy everything from /var/lib/mysql/database_name to the same location in the new server, then restarted MySQL. A few days later, I was making a change to a row using phpMyAdmin, and received the error in the subject: Incorrect key file for table '****.MYI'; try to repair it I was able to fix it using REPAIR table table_name QUICK, no problem. But today, working on a different table, I get the same error. I'm about to use REPAIR on this table now. The question, though, is why am I suddenly getting errors? Is this a symptom of a larger problem? |
#4
| |||
| |||
|
|
It's a symptom of screwing up when moving your databases to a new server. You should have dumped your database on the old one then restored them to the new one, especially when changing releases. You *may* get it to work if you stop MySQL and copy the files IF your old and new system are the same level. But what you did is not supported. |
#5
| |||
| |||
|
|
On Sunday, October 23, 2011 9:38:40 PM UTC-4, Jerry Stuckle wrote: It's a symptom of screwing up when moving your databases to a new server. You should have dumped your database on the old one then restored them to the new one, especially when changing releases. You *may* get it to work if you stop MySQL and copy the files IF your old and new system are the same level. But what you did is not supported. I had actually read to do that here: http://dev.mysql.com/doc/refman/5.0/...databases.html After re-reading, though, I guess that I took for granted that the two different versions of MySQL would be considered the same architecture "that support the same floating-point format". Will a REPAIR fix the problem by rebuilding the index, or should I expect more problems to pop up over time? |
#6
| |||
| |||
|
|
I recently moved my MySQL database from a failing server to a new one. To move, I used rsync to copy everything from /var/lib/mysql/database_name to the same location in the new server, then restarted MySQL. A few days later, I ... received the error in the subject: Incorrect key file for table '****.MYI'; try to repair it |
|
It may be worth noting that the old server ran MySQL v. 5.0.92, and the new server runs 5.1.56. |
#7
| |||
| |||
|
|
On Sunday, October 23, 2011 9:38:40 PM UTC-4, Jerry Stuckle wrote: It's a symptom of screwing up when moving your databases to a new server. You should have dumped your database on the old one then restored them to the new one, especially when changing releases. You *may* get it to work if you stop MySQL and copy the files IF your old and new system are the same level. But what you did is not supported. I had actually read to do that here: http://dev.mysql.com/doc/refman/5.0/...databases.html |
|
After re-reading, though, I guess that I took for granted that the two different versions of MySQL would be considered the same architecture "that support the same floating-point format". |
|
Will a REPAIR fix the problem by rebuilding the index, or should I expect more problems to pop up over time? |
#8
| |||
| |||
|
|
It may be worth noting that the old server ran MySQL v. 5.0.92, and the new server runs 5.1.56. |
![]() |
| Thread Tools | |
| Display Modes | |
| |