Questions tagged [mysql-error-126]

ERROR 126 (HY000): Incorrect key file for table

ERROR 126 (HY000): Incorrect key file for table

11 questions
108
votes
17 answers

MySQL: #126 - Incorrect key file for table

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?
Brian
  • 26,662
  • 52
  • 135
  • 170
60
votes
11 answers

MySQL incorrect key file for tmp table when making multiple joins

I don't come here for help often but I am pretty frustrated by this and I am hoping someone has encountered it before. Whenever I try to fetch records from a table using more than one join I get this error: #126 - Incorrect key file for table…
Paolo Bergantino
  • 480,997
  • 81
  • 517
  • 436
47
votes
12 answers

How do you fix a MySQL "Incorrect key file" error when you can't repair the table?

I'm trying to run a rather large query that is supposed to run nightly to populate a table. I'm getting an error saying Incorrect key file for table '/var/tmp/#sql_201e_0.MYI'; try to repair it but the storage engine I'm using (whatever the default…
Wayne Molina
  • 19,158
  • 26
  • 98
  • 163
29
votes
5 answers

MySQL, Error 126: Incorrect key file for table

I read the following question that has relevance, but the replies didn't satify me: MySQL: #126 - Incorrect key file for table The problem When running a query I get this error ERROR 126 (HY000): Incorrect key file for table` The question When…
superhero
  • 6,281
  • 11
  • 59
  • 91
6
votes
3 answers

Incorrect key file with MySQL

I'm having a problem with a InnoDB (table was initally MyISAM, but converted it to InndoB awhile ago) table; I am trying to run this query: SELECT posts.id, posts.post_title FROM rss_posts AS posts INNER JOIN rss_feeds AS feeds ON…
Brett
  • 19,449
  • 54
  • 157
  • 290
6
votes
3 answers

How do you recover from an "incorrect key file" with MySQL (InnoDB)?

Incorrect key file for table 'widgets'; try to repair it This is the error message MySQL gives me when attempting to apply a new index to an existing (very large) table. Of course when I follow the error message's suggestion of trying to repair…
Teflon Ted
  • 8,696
  • 19
  • 64
  • 78
2
votes
1 answer

MySQL: Incorrect key file for table '/tmp/#sql_185e_0.MYI'; try to repair it

Incorrect key file for table '/tmp/#sql_185e_0.MYI'; try to repair it What does this error mean? "Incorrect key file for table '/tmp/#sql_185e_0.MYI'; try to repair it" I'm inserting 400k records in a table by 25k per batch using PHP in command…
marknt15
  • 5,047
  • 14
  • 59
  • 67
1
vote
0 answers

mysql error with a large union: Incorrect key file for table '#sql_24b3_61.MYI'; try to repair it

I am doing a sitewide - query across a large wordpress MU installation. I am getting this error: Incorrect key file for table '#sql_24b3_61.MYI'; try to repair it The table signified, sql_24b3_61 is not part of my db. Also, the query is very large…
user373396
  • 100
  • 1
  • 1
  • 6
1
vote
0 answers

mysql incorrect key file for table

I have the following table named posts Column Type Null Default Comments postId bigint(20) No 0 source varchar(10) No profanity tinyint(1) No 0 …
user936965
0
votes
1 answer

MyISAM table index file keep crashing on regular basis!

Table keep Crashing ERROR 126 (HY000): Incorrect key file for table './DB/Table.MYI'; try to repair it It does get fixed by repair table but the problem is reoccurring!! and it's 5G table takes ~45mins to repair.
allen
  • 1
  • 1
0
votes
1 answer

mysql query: Incorrect key file for table

I run this query: SELECT v.autor, v.titlu, 'http://85.25.176.18/resursecrestine-download' + v.`link` FROM `video_resurse` v, predicimp3 p WHERE v.titlu = p.titlu ORDER BY v.autor all it's ok. But when I replace "=" with "!=" it takes very…
Cristian Boariu
  • 9,603
  • 14
  • 91
  • 162