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

Posted 笑东风

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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.

 

以上是关于MySQL Error--InnoDB Table mysqlinnodb_index_stats has length mismatch in the column的主要内容,如果未能解决你的问题,请参考以下文章

MySQL数据字典提示1146不存在的问题解决

由于 MySQL 版本问题导入报错

MySQL 初始化错误

[ERROR] InnoDB: Unable to lock ./ibdata1, error: 11

CentOS7 mysql 连接不上 :[ERROR] InnoDB: The innodb_system data file 'ibdata1' must be writable

mysql 5.6.34 突然宕机,启动不了,提示[ERROR] InnoDB: Space id in fsp header