Sometimes you may face the error for a mysql driven website. All of sudden a site has started to display this error:
Can’t create/write to file ‘#sql_5a0_0.MYD’ (Errcode: 17)
Its MySQL error, MySQL is saying the it cannot write to that directory. Its most probably related file exists in that directory. The /tmp is a folder used for temporary files and folders of all users on a server. In this case you need to empty the /tmp folder.
# cd /tmp
# rm -rf *.MYD
# service mysql restart
If you still have problem with this, better check the disk space on your server and delete unwanted files, folders and log files.