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.

原文地址:https://www.cnblogs.com/gaogao67/p/11715700.html

时间: 2024-10-21 16:41:33

MySQL Error--InnoDB Table mysqlinnodb_index_stats has length mismatch in the column的相关文章

MySQL 5.6 Reference Manual-14.6 InnoDB Table Management

14.6 InnoDB Table Management 14.6.1 Creating InnoDB Tables 14.6.2 Moving or Copying InnoDB Tables to Another Machine 14.6.3 Grouping DML Operations with Transactions 14.6.4 Converting Tables from MyISAM to InnoDB 14.6.5 AUTO_INCREMENT Handling in Inn

MySQL [ERROR] Table 'mysql.user' doesn't exist

一次源码新装的mysql,由于没有复制my-default.cnf到/etc/my.cnf位置,在启动mysql的时候碰到了无法打开mysql.user表的错误.具体错误为:[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist.下面是该错误的描述及其解决办法. 1.现象描述[[email protected] scripts]# service mysqld star

修复mysql:[ERROR] Native table ‘performance_schema’

转: http://www.amznz.com/error-native-table-performance_schema/ mysql数据库出现如下错误,主要是因为升级了mysql软件包,而一些数据库的表结构发生变化而无法正常运行. 140213 16:55:47 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure140213 16:55:47 [ERROR] Nati

关于MySQL:ERROR 1022 (23000): Can't write; duplicate key in table 'test4'

ERROR 1022 (23000): Can't write; duplicate key in table 'test4':在为"test4"表设置外键时.外键名与已有的外键名重复;代码如下,注意加粗部分 错误代码: mysql> create table test4( -> id int, -> cp_name varchar(32), -> constraint test_fk foreign key(cp_name) references studen

MySQL Plugin 'InnoDB' init function returned error

. . 在MySQL的配置文件中,设定default-table-type=InnoDB,发现MySQL无法正常的启动,错误日志中给出了如下的信息: 150210 18:11:19 mysqld_safe mysqld from pid file /data/mysqldata/mysql.pid ended150210 18:15:20 mysqld_safe Starting mysqld daemon with databases from /data/mysqldata150210 18

mysql ERROR 126 (HY000): Incorrect key file for table '/tmp/#sql_1d87_0.MYI'; try to repair it

[[email protected] ~]# df -h 查看是否空间不足 在查看mysql数据目录情况 mysql> show variables like '%dir%'; +-----------------------------------------+------------------------------------+ | Variable_name                           | Value                              |

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

一.问题描述 一台线上的从服务器,半夜收到报警短信提示异常,连接到该服务器,发现mysqld进程不在了,ps 查看,也没有查到.于是重启,但是重启失败,提示without pid file 于是查看errorlog,内容如下: 2017-09-22 03:37:42 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2017-09-

导出Mysql数据库出错:Got error: 145: Table 'wp_options' is marked as crashed and should be repaired when using LOCK TABLES的解决方法

mysqldump: Got error: 145: Table 'wp_options' is marked as crashed and should be repaired when using LOCK TABLES 错误如上所示. 今天在给自己的wp网站搬家的时候,导出数据时发现导不出来,报了如上的错误,在网上找了一下资料,说是这张张被标记有问题,需要优化.参考: http://www.cnblogs.com/hakuci/archive/2012/03/20/2407723.html

MySQL ERROR 1005: Can't create table (errno: 150)的错误解决办法

在mysql 中建立引用约束的时候会出现MySQL ERROR 1005: Can't create table (errno: 150)的错误信息结果是不能建立 引用约束. 出现问题的大致情况 1.外键的引用类型不一样,主键是int外键是char 2.找不到主表中 引用的列 3.主键和外键的字符编码不一致 4.还有要建立外键的话,要先建立索引.没有建立索引也会出错. MySQL ERROR 1005: Can't create table (errno: 150)的错误解决办法