tags:

views:

184

answers:

1

I got the following error from a MySQL query.

#126 - Incorrect key file for table

I have not even declared a key for this table, but I do have indices. Does anyone know what could be the problem?

A: 

Error #126 usually occurs when you got a corrupt table. The best way to solve this is to perform repair. This article might help:

http://dev.mysql.com/doc/refman/5.0/en/repair-table.html

junmats
I deleted all my keys and optimized. Could I get this error if my query is too slow?
Brian
I am not sure but based on my understanding, this error is not caused by a query. Have you tried repair yet?
junmats