Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

10.3. Maintenance 数据库维护

10.3.1. CHECK 检查表

CHECK TABLE `dbname`.`actions`;
CHECK TABLE `dbname`.`actions` QUICK FAST MEDIUM EXTENDED CHANGED;
			

10.3.2. ANALYZE 分析表

ANALYZE TABLE `dbname`.`actions`;
			

10.3.3. CHECKSUM

CHECKSUM TABLE `dbname`.`actions` QUICK;
			

10.3.4. OPTIMIZE 优化表

OPTIMIZE TABLE `dbname`.`actions`;
			

10.3.5. REPAIR 修复

REPAIR TABLE `dbname`.`members`;
SHOW TABLE STATUS LIKE 'members';