Home | Mirror | Search

3. Maintenance 資料庫維護

3.1. CHECK 檢查表

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

3.2. ANALYZE 分析表

ANALYZE TABLE `dbname`.`actions`;
			

3.3. CHECKSUM

CHECKSUM TABLE `dbname`.`actions` QUICK;
			

3.4. OPTIMIZE 優化表

OPTIMIZE TABLE `dbname`.`actions`;
			

3.5. REPAIR 修復

REPAIR TABLE `dbname`.`members`;
SHOW TABLE STATUS LIKE 'members';
			
comments powered by Disqus