0
Can't create/write to file '/tmp/#sql_77a8_0.MYD' (Errcode: 17)

I'm getting this for all softs of select queries. This problem is quite intermittent. Deleting the file fixes the problem but in an hour or so it's back again.

Trying to restart the service occationally gives this error:

[14:57] root@host [/home/belntwk/all_sites]# service mysql restart
Shutting down MySQL. ERROR! Manager of pid-file quit without updating file.
 ERROR! Failed to stop running server, so refusing to try to start.

No idea what the problem is or even how to test if it has been fixed or not.

Benbob
  • 277
  • 1
  • 6
  • 19

3 Answers3

1

Sounds like a full /tmp to me

Or a permissions problem..

Arenstar
  • 3,602
  • 2
  • 25
  • 34
0

Just do a killall mysqld.

For the real cause..... is your disk (or /tmp) full?

J-16 SDiZ
  • 238
  • 2
  • 9
0

The temporary file "#sql_272_0.MYD" cannot be written to because it was not removed from a past session and unwrittable by the current session. It needs to be manually removed from the /tmp directory.

ssh into your server using the terminal, and enter the following command:

rm -f "/tmp/#sql_272_0.MYD"

Edit: make sure to execute the command as a user with permission to delete the file.

ThoriumBR
  • 5,302
  • 2
  • 24
  • 34
fogmann
  • 1
  • 1