MySQL/Writing file error (Errcode 28)

后端 未结 10 1947
慢半拍i
慢半拍i 2020-11-29 04:36

I have the following error with one of our web applications -

Query3 failed: Error writing file \'/tmp/MY1fnqpm\' (Errcode: 28) ... INSERT MailList... (remo         


        
10条回答
  •  醉梦人生
    2020-11-29 04:51

    The error means that you dont have enough space to create temp files needed by MySQL.

    The first thing you can try is to expand the size of your /tmp/ partition. If you are under LVM, check the lvextend command.

    If you are not able to increase the size of your partition /tmp/ you can work in the MySQL configuration, edit the my.cnf (typically on /etc/mysql/my.cnf) file and look for this line:

    tmpdir = /tmp/

    Change it for whatever you want (example /var/tmp/). Just be sure to have space and assign write permission for the mysql user in the new directory.

    Hope this helps!

提交回复
热议问题