刚才上来发现进入bo-blog出错,提示: Bo-Blog Database System Tips: MySQL Query Error
Time: 2007-7-20 3:47pm Script:
SQL: SELECT COUNT(blogid) FROM `***blogs` WHERE `property`<>'2' AND `property`<>'3' Error: Table './wjinfo-bo-blog/***blogs' is marked as crashed and should be repaired Errno.: 145
进入phpmyadmin后发现对应的***blogs只能看到结构,不能看到数据。尝试mysqldump备份数据库提示: mysqldump: Got error: 145: Table './wjinfo-bo-blog/boblog_blogs' is marked as crashed and should be repaired when using LOCK TABLES
最后找到MySQL对应表的MYI数据文件,执行myisamchk -c -r boblog_blogs.MYI - recovering (with sort) MyISAM-table 'boblog_blogs.MYI' Data records: 359 - Fixing index 1 - Fixing index 2 - Fixing index 3 - Fixing index 4