差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
tech:mysqltips [2021/01/16 14:41] – 更換 plugin jonathantech:mysqltips [2022/08/03 15:24] (目前版本) jonathan
行 1: 行 1:
-====== MySQL 相關技巧彙整 ======+====== MySQL/MariaDB 相關技巧彙整 ======
 ===== 1. 資料表效能優化 ===== ===== 1. 資料表效能優化 =====
   * 參考 - https://www.thegeekstuff.com/2016/04/mysql-optimize-table/   * 參考 - https://www.thegeekstuff.com/2016/04/mysql-optimize-table/
行 73: 行 73:
 </cli> </cli>
  
 +===== 3. 出現異常訊息 - [ERROR] mysqld: Table './stats/stats_media' is marked as crashed and should be repaired  ===== 
 +  * 參考 - https://stackoverflow.com/questions/58386240/mysqld-exe-table-mysql-db-is-marked-as-crashed-and-should-be-repaired 
 +  * 對 database : stats 進行修復 <cli> 
 +mysqlcheck -r --databases stats --use-frm 
 +</cli> 會在 log 內看到如下的訊息<cli> 
 +
 +
 +220803 15:11:48 [ERROR] mysqld: Table './stats/stats_media' is marked as crashed and should be repaired 
 +220803 15:13:10 [Note] Found 6676 of 0 rows when repairing './stats/stats_access' 
 +220803 15:13:10 [Note] Found 813 of 0 rows when repairing './stats/stats_edits' 
 +
 +220803 15:13:11 [Note] Found 517 of 0 rows when repairing './stats/stats_searchwords' 
 +220803 15:13:11 [Note] Found 1013 of 0 rows when repairing './stats/stats_session' 
 +</cli>
  
 {{tag>mysql tips}} {{tag>mysql tips}}
  
  • tech/mysqltips.1610779273.txt.gz
  • 上一次變更: 2021/01/16 14:41
  • jonathan