2.進(jìn)入Mysql的Bin目錄:E:Program FilesMySQLMySQL Server 5.0in,如果不知道如何進(jìn)入別的目錄,就要參考網(wǎng)上的資料補(bǔ)習(xí)基礎(chǔ)知識(shí)了. 常見方式: 運(yùn)行 E: 運(yùn)行 CD "E:Program FilesMySQLMySQL Server 5.0in"
3.運(yùn)行:mysqlcheck -A -o -r -uroot -p888888 注意,將888888改成你自己的root用戶密碼
mysql.columns_priv OK mysql.db OK mysql.func OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.host OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK ...... ...... ......
注意!
在修復(fù)過(guò)程中,如果看到有error的提示,表明這個(gè)表是壞的,無(wú)法修復(fù)的,對(duì)于含有壞表的的數(shù)據(jù)庫(kù),您只能刪除它,或停止它,不然會(huì)影響整個(gè)Mysql的穩(wěn)定,造成mysql自動(dòng)停止.(提示"The storage engine for the table doesnt support repair"的表不需要處理)
如果修復(fù)太快看不到結(jié)果,可以運(yùn)行 mysqlcheck -A -o -r -uroot -p888888 >>C: est.txt