error code 28: no space left on device
sql语句执行错误:select title,gid from blog_blog where date < 1246200383 and hide = 'n' and type='blog' order by date desc limit 1
error writing file 'c:windowstempmy9b6f.tmp' (errcode: 28)
解决方法:
1.释放c:windowstemp空间
2.因为原表太大,所以查询时生成的临时表过大,因此出错。
解决办法。重启了mysql,然后加上where分三段查询,避免全表扫描。
测试结果:第一个有用,第二个有道理,没测试过,过了第一个就解决了,第二个以后好好研究下
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!