码迷,mamicode.com
首页 > 数据库 > 详细

Incorrect key file for table '/tmp/#sql_882_0.MYI'; try to repair it

时间:2016-05-29 18:05:36      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:

修表方法如下:

一法:. check table 和 repair table 方法
1,进入Mysql 的Dos控制台,输入密码进入

2,use database;(你的数据库名)

3, check table tabTest; 
如果出现的结果说Status是OK,则不用修复,如果有Error,可以用: 

> repair table tabTest;

 

 

另外一个很可能的原因是临时文件夹空间不足,在进行大数据JOIN,ORDER BY时可能出现,这时需要修改临时文件夹路径

在启动命令中增加tmpdir参数:

/usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file="$mypidfile" --log-error="$errlogfile" --tmpdir=/var/tmp

Incorrect key file for table '/tmp/#sql_882_0.MYI'; try to repair it

标签:

原文地址:http://www.cnblogs.com/toSeeMyDream/p/5539766.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!