Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Incorrect key file problem (1 reply)

$
0
0
Ok...... I'm running a query on MySQL as below..

SELECT 
	posts.id,
	posts.post_title
FROM
	rss_posts AS posts
	INNER JOIN rss_feeds AS feeds ON posts.blog_id=feeds.id
WHERE
	feeds.blog_language=1
ORDER BY
	posts.post_date_db DESC
LIMIT
	10;

When I run this I get the following error returned..


Error Code : 126
Incorrect key file for table '/var/tmp/#sql_4221_0.MYI'; try to repair it


Now because I am running InnoDB I cannot run a repair on the tables involved; however I have ran a CHECK on both tables & they appear fine. I have also done an OPTIMIZE on both tables & ALSO rebuilt the tables by doing the below..

INSERT INTO new_table SELECT * FROM old_table;

I then renamed the new table to the old table name..... but I am STILL having that problem.

So...... to try & figure out what table was causing it I removed the code in the query referencing the "rss_feeds" table.... so now the query looks like this..

SELECT 
	posts.id,
	posts.post_title
FROM
	rss_posts AS posts
ORDER BY
	posts.post_date_db DESC
LIMIT
	10;

That WORKED!!

So...... the problem is something with the rss_feeds table.... but I don't know what else to try.

Now, I know, I know...... I have searched for this problem on Google already...... I noticed that the MAJORITY of the time the problem is there us not enough space in the MySQL temp directory.... but I already got the host to change the temp dir to something with a LOT more space & the problem still remains.

Any help would be MUCH appreciated!

Thanks!

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>