[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2009-04-09
8
Medium Priority
?
1,760 Views
Last Modified: 2012-05-06
I created an HEAP table and a traditional MyISAM table with the same fields on both of them.
One software writes into the HEAP table, then periodically transfers its content to the MyISAM table.

It works pretty good for a while then I get one error while trying to do a select over both of them using an sql view.

The error is: Incorrect key file for table '/tmp/#sql_6ae0_0.MYI'; try to repair it

To fix I have to drop the table and create it again.

Any idea?

Mysql 5 on Linux.
0
Comment
Question by:phoenix128
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24114407
why dropping it? use

REPAIR TABLE tablename;

even if it's a temporary table. Check if the /tmp folder and drive have no quota/space restrictions, and that your mysql process has sufficient rights to create its temporary files there without limitations
0
 

Author Comment

by:phoenix128
ID: 24115412
Unfortunately REPAIR does not always work, but maybe you gave me an idea.
My /tmp is on tmpfs and maybe the problem is there... but I see it is 98% free.

Am I missing something here?
0
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24115558
is there any particular error code? like, 126?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24115576
ok, here's an idea: keep an eye on /tmp while the program normally works; and especially when you do the select. If the space fills up all in one it means we know the problem
0
 

Author Comment

by:phoenix128
ID: 24115591
Yes, it givers error 28 ... I googled it and it seems it is related to free space.
What I did not understand is why it needs to write into /tmp folder during a select. Can you explain me the mechanism?
0
 
LVL 16

Expert Comment

by:ai_ja_nai
ID: 24115633
Well, any operation outputs garbage data during the execution, data that must be deleted after the opearation has terminated.
These data are the intermediate values that have to be computed some more. Normally it resides into RAM, but to prevent accidents, this data is stored on disk, so that if something goes wrong it can be checked for debugging purposes.
0
 
LVL 16

Accepted Solution

by:
ai_ja_nai earned 2000 total points
ID: 24115640
If you told me earlier that it was Error 28, we could have solved it much earlier and quicker
http://www.mysql.com/news-and-events/newsletter/2003-10/a0000000249.html
0
 

Author Closing Comment

by:phoenix128
ID: 31568568
Thank you very much for your help :)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question