MySQL Error--InnoDB Table mysqlinnodb_index_stats has length mismatch in the column


使用MySQL 5.7.24版本的安裝文件替換MySQL 5.7.19版本的安裝文件,數據庫復制頻繁中斷,查看error日志發現下面錯誤:

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

解決辦法:

在MySQL服務正常運行的狀態下,使用mysql_upgrade命令進行處理:

mysql_upgrade --host='127.0.0.1' --port=3358 --user='root' --password="password"

執行結果:

mysql_upgrade: [Warning] Using a password on the command line interface can be insecure.
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Checking system database.
mysql.columns_priv OK
report.ts_wcs_task_worker OK
report.ts_without_plan_container OK
report.ts_without_plan_picking OK
report.ts_without_plan_putaway OK
report.wms_restingorder_data OK
sys.sys_config OK
workflow_test.workflow_t1 OK
Upgrade process completed successfully.
Checking if update is needed.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM