centos mysql下报错:Incorrect key file for table '/tmp/#sql_.MYI'; try to repair it

我的是因为临时文件夹满了;

查看mysql临时文件存放目录:

  登录root: mysql -u root -p;

  查看临时文件目录:show variables like '%tmp%';

进入临时文件目录:

cd /tmp

查看mysql临时文件:find ./ -type f -name '*sql*'

删除:find ./ -type f -name '*sql*' -exec rm -f {} ;

解决

原文地址:https://www.cnblogs.com/lippor/p/11571083.html