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

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

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

  登录root: mysql -u root -p;

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

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

进入临时文件目录:

cd /tmp

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

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

解决

上一篇:mysql导入数据报错:Incorrect datetime value


下一篇:HDU3047-Zjnu Stadium-带权并查集