解決Mysql "is marked as crashed and should be repaired"的故障

在查看數據庫的出錯日誌時,看到如下錯誤信息mysql

151103  8:43:33 [ERROR] /alidata/server/mysql/libexec/mysqld: Table './mould_2012/web_members' is marked as crashed and should be repaired
151103  8:43:33 [Warning] Checking table:   './mould_2012/web_members'
151103  8:43:33 [ERROR] /alidata/server/mysql/libexec/mysqld: Table './mould_2012/web_members' is marked as crashed and should be repaired
151103  8:43:33 [Warning] Checking table:   './mould_2012/web_members'
151103  8:43:33 [ERROR] /alidata/server/mysql/libexec/mysqld: Table './mould_2012/web_members' is marked as crashed and should be repaired
151103  8:43:33 [Warning] Checking table:   './mould_2012/web_members'
151103  8:43:33 [ERROR] /alidata/server/mysql/libexec/mysqld: Table './mould_2012/web_products' is marked as crashed and should be repaired
151103  8:43:33 [Warning] Checking table:   './mould_2012/web_products'
151103  8:43:33 [ERROR] /alidata/server/mysql/libexec/mysqld: Table './mould_2012/web_products' is marked as crashed and should be repaired
151103  8:43:33 [Warning] Checking table:   './mould_2012/web_products'
151103  8:43:33 [ERROR] /alidata/server/mysql/libexec/mysqld: Table './mould_2012/web_products' is marked as crashed and should be repaired
151103  8:43:33 [Warning] Checking table:   './mould_2012/web_products'
151103  8:43:33 [ERROR] /alidata/server/mysql/libexec/mysqld: Table './mould_2012/web_products' is marked as crashed and should be repaired
151103  8:43:33 [Warning] Checking table:   './mould_2012/web_products'web

解決方法:sql

[root@AY1309181833303768f9Z mould_2012]# myisamchk -c -r web_members.MYI
- recovering (with sort) MyISAM-table 'web_members.MYI'
Data records: 18126
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
[root@AY1309181833303768f9Z mould_2012]# myisamchk -c -r web_products.MYI
- recovering (with sort) MyISAM-table 'web_products.MYI'
Data records: 15213
- Fixing index 1數據庫

相關文章
相關標籤/搜索