データベース・エラーで怒られた。

計画停電対策等で、学科Wikiやそのデータベースの引っ越しなどをいろいろやったのだが、

データベースクエリの構文エラーが発生しました。ソフトウェアにバグがある可能性があります。最後に実行を試みたクエリは次の通りです: 関数 "SearchMySQL::updateTitle" 内

(SQLクエリ非表示)

データベースの返したエラー "145: Table './wikidb/mw_searchindex' is marked as crashed and should be repaired (10.0.0.62)"

などと怒られた。

mysql> use wikidb;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> repair table mw_searchindex;
+-----------------------+--------+----------+----------+
| Table                 | Op     | Msg_type | Msg_text |
+-----------------------+--------+----------+----------+
| wikidb.mw_searchindex | repair | status   | OK       |
+-----------------------+--------+----------+----------+
1 row in set (0.60 sec)

repair table でさくっと直った。 けっこうWikiに書いた資料がたまっているので、その使い回しでなんとかしのぐ、今日この頃。