Bug #60616 #126 - Incorrect key file for table '/tmp/#sql_3a2_0.MYI'; try to repair it
Submitted: 24 Mar 2011 7:46 Modified: 24 Apr 2011 7:50
Reporter: thangaraj k Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.1.41 ubuntu OS:Other (ubuntu 10.04LTS)
Assigned to: CPU Architecture:Any

[24 Mar 2011 7:46] thangaraj k
Description:
#126 - Incorrect key file for table '/tmp/#sql_3a2_0.MYI'; try to repair it

This bug shows only when i select query with grouping, but not in without grouping select queries.

Note: the total rows selected without group clause is : 351,193 records.

How to repeat:
#126 - Incorrect key file for table '/tmp/#sql_3a2_0.MYI'; try to repair it

This bug shows only when i select query with grouping, but not in without grouping select queries.

Note: the total rows selected without group clause is : 351,193 records.
[24 Mar 2011 7:50] Valeriy Kravchuk
Please, send your my.cnf file content and the results of:

df -k

As a temporary workaround you can try to add indexes on column(s) from GROUP BY in a hope that optimizer will use execution plan that does NOT include temporary tables creation.
[24 Apr 2011 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".