Mysql修復表結構

總會在 MySQL 的日誌中見到[ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure之類的錯誤mysql

須要按照以下的格式在 Linux 的 —— 而不是 MySQL 的 —— 命令提示符下運行:sql

(1) mysql_upgrade -u root -p數據庫

(2) mysqlcheck -uroot -p 數據庫名 --auto-repairide

相關文章
相關標籤/搜索