MariaDB 出現 length mismatch 錯誤

  今天在查系統紀錄時看到 MariaDB 有一大堆錯誤訊息內容如下

InnoDB: Table mysql/innodb_index_stats has length mismatch in the column name table_name. Please run mysql_upgrade

 

  上網查了後主要是因為 DB 在某次更新後欄位的長度有做調整而調整方式就如事件紀錄所說執行 mysql_upgrade 指令即可

 

◎ 執行 MariaDB 的 Command Prompt並輸入下列指令

mysql_upgrade -u root -p

 

◎ 跑完後重啟 SQL 服務即可

 

  若執行完上述動作仍然沒有解決問題請將資料庫備份後移除再重新安裝即可

 

【參考連結】

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.