Incorrect key file for table ‘/tmp/mysqltmp/#sql_XXXX_0.MYI’; try to repair it

Today, I received bunch of “Incorrect key file for table” error and my sql server goes down. I have checked the MySQL logs and I found some /tmp partition issue. I have resolve this issue. If you are getting error Incorrect key file for table in mysql then here is the solution for you.

Error : Incorrect key file for table ‘/tmp/mysqltmp/#sql_XXXX_0.MYI’; try to repair it

Cause :
This is indicating the problem is with a temporary table.
This type of error generally means your host’s SQL server’s temporary folder is misconfigured, the SQL server’s harddrive is full, or that your account’s filespace quota is too low.

Solution :
It is a problem with the database server, so contact your host.
Or
If you have root access then change the “tmp” Directory location.

root@ykl [~]# cat /etc/my.cnf
#tmp directory
tmpdir=/var/mysqltmp
Enjoy 🙂

Bookmark the permalink.

10 Responses to Incorrect key file for table ‘/tmp/mysqltmp/#sql_XXXX_0.MYI’; try to repair it

  1. Pingback: viagra cheap

  2. Pingback: generic ventolin

  3. Pingback: buy ciprofloxacin

  4. Pingback: buy naltrexone

  5. Pingback: where can i find tylenol

  6. Pingback: chloroquine tablets cost

  7. Pingback: hydroxychloroquine prescription

  8. Pingback: cost of viagra with insurance

  9. Pingback: best prices on viagra

  10. Pingback: cialis online