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

August 25, 2014 20.3k views

hello today i m trying remove a list of movies from my website and after that i got this error
Incorrect key file for table '/tmp/#sql46e0.MYI'; try to repair it on all my website
i ask in some forum and tell me to contact hosting server help to fix that problem
please tell me what to do to fix this ?
when i refresh webpage i got Got error 28 from storage engine
i use zpanel on server
and i have another website installed on same server and work fine?

2 comments
  • What OS are you using? This error is often seen when there is no more room on the hard drive. On some OSs, /tmp is mounted as tmpfs filesystem which might not be large enough. What's the output of

    df -h
    
  • Just ran in the same problem and indeed got a report that my disk was full. While fiddeling finding out why it would be full it suddenly reported a normal situaltion again and ran as expected with
    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/vda1 30G 12G 17G 43% /
    none 4.0K 0 4.0K 0% /sys/fs/cgroup
    udev 487M 4.0K 487M 1% /dev
    tmpfs 100M 408K 100M 1% /run
    none 5.0M 0 5.0M 0% /run/lock
    none 498M 0 498M 0% /run/shm
    none 100M 0 100M 0% /run/user
    overflow 1.0M 844K 180K 83% /tmp

    Whats going on here? Hardware problems?

2 Answers

Power off your web servers and your MySQL server.

Then goto the directory where your MySQL data files are and run the following:

myisamchk -r */*.MYI

This is MySQL's internal tool that repairs broken tables. After that restart the MySQL service and the web servers and retry your actions.

We don't run any partitions by default so your /tmp directory won't be out of space unless your entire server is and you can check that very easily by running the following command:

df -h

Plase help me, i did what you said and I cant log in to phpmyadmin.

Have another answer? Share your knowledge.