在查看数据库的出错日志时,看到以下错误信息

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'

解决方法:

[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