Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

3.3. Maintenance 資料庫維護

3.3.1. CHECK 檢查表

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

3.3.2. ANALYZE 分析表

ANALYZE TABLE `dbname`.`actions`;
			

3.3.3. CHECKSUM

CHECKSUM TABLE `dbname`.`actions` QUICK;
			

3.3.4. OPTIMIZE 優化表

OPTIMIZE TABLE `dbname`.`actions`;
			

3.3.5. REPAIR 修復

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