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 {} \;

解决

posted on 2019-09-23 10:45  lippor  阅读(2495)  评论(0编辑  收藏  举报