How do you fix a MySQL “Incorrect key file” error when you can't repair the table?

前端 未结 10 1899
眼角桃花
眼角桃花 2020-12-13 08:53

I\'m trying to run a rather large query that is supposed to run nightly to populate a table. I\'m getting an error saying Incorrect key file for table \'/var/tmp/#sql

10条回答
  •  伪装坚强ぢ
    2020-12-13 09:46

    You must change the location of MySQL's temporary folder which is '/tmp' in most cases to a location with a bigger disk space. Change it in MySQL's config file.

    Basically your server is running out of disk space where /tmp is located.

提交回复
热议问题