首页 > 数据库技术 > 详细

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

时间:2016-05-29 18:04:28      阅读:1407      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!