由于 MySQL 版本问题导入报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了由于 MySQL 版本问题导入报错相关的知识,希望对你有一定的参考价值。

问题:
导入 mysqldump导出的数据库时,错误日志报如下的错误

2018-09-03T01:49:15.741378Z 6 [ERROR] InnoDB: Column table_name in table `mysql`.`innodb_table_stats` is VARCHAR(597) NOT NULL but should be VARCHAR(192) NOT NULL (length mismatch).
2018-09-03T01:49:15.741444Z 6 [ERROR] InnoDB: Fetch of persistent statistics requested for table `ebusbar_boss_db`.`s_kpi` but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2018-09-03T01:49:37.973418Z 7 [ERROR] InnoDB: Column table_name in table `mysql`.`innodb_table_stats` is VARCHAR(597) NOT NULL but should be VARCHAR(192) NOT NULL (length mismatch).
2018-09-03T01:49:37.973484Z 7 [ERROR] InnoDB: Fetch of persistent statistics requested for table `ebusbar_boss_db`.`s_kpi_daily` but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
2018-09-03T01:49:47.627903Z 8 [ERROR] InnoDB: Column table_name in table `mysql`.`innodb_table_stats` is VARCHAR(597) NOT NULL but should be VARCHAR(192) NOT NULL (length mismatch).
2018-09-03T01:49:47.627952Z 8 [ERROR] InnoDB: Fetch of persistent statistics requested for table `ebusbar_boss_db`.`s_company` but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.

原因:
数据库版本不一致,源数据库为 mysqld 5.7.23,目标数据库为 mysqld 5.7.22

以上是关于由于 MySQL 版本问题导入报错的主要内容,如果未能解决你的问题,请参考以下文章

修改MySQL密码报错“ERROR 1819 (HY000): Your password does not satisfy the current policy requirements“(代码片段

Oracle 数据库 - 使用UEStudio修改dmp文件版本号,解决imp命令恢复的数据库与dmp本地文件版本号不匹配导致的导入失败问题,“ORACLE error 12547”问题处理(代码片段

RuntimeError: ‘lengths’ argument should be a 1D CPU int64 tensor, but got 1D cuda:0 Long tensor(代码片段

Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法(代码片段

mysql使用load导入txt文件所遇到的问题及解决方法

win处navicat直接导出的sql脚本导入Linux mysql报错问题