有时因为掉电或者其他原因导致数据库损坏,我们可以使用
mysql自带的mysqlcheck命令
来快速修复所有的数据库或者特定的数据库;
方法:
C:\Program Files\
MySQL\
MySQL Server 4.1\bin
运行:mysqlcheck -A -o -r -uroot -p123
注意,将123改成你自己的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
.........................
这样OK了~~