>  기사  >  백엔드 개발  >  优化表后出现了is marked as crashed and last (automatic?) repair failed解决办法

优化表后出现了is marked as crashed and last (automatic?) repair failed解决办法

WBOY
WBOY원래의
2016-06-13 10:33:011323검색

优化表后出现了is marked as crashed and last (automatic?) repair failed
今天想优化一下表,优化之后出现了如下问题:

SQL code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->mysql> OPTIMIZE TABLE jo_mailqueue;+---------------------+----------+----------+-------------------------------------------------------------+| Table               | Op       | Msg_type | Msg_text                                                                                        |+---------------------+----------+----------+-------------------------------------------------------------+| jobour.jo_mailqueue | optimize | error    | 1 when fixing table                                                                             || jobour.jo_mailqueue | optimize | Error    | Can't change ownership of the file '/usr/local/mysql/data/jobour/jo_mailqueue.MYD' (Errcode: 1) || jobour.jo_mailqueue | optimize | status   | Operation failed                                                                                |+---------------------+----------+----------+---------------------------------------------------


从phpmyadmin打开之后,发现表正在使用中。


OPTIMIZE 优化表怎么会出现这种问题啊。是什么导致的啊。? 谢谢!






------解决方案--------------------
索引坏了 myisam经常这么烂 用命令修复 REPAIR TABLE
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.