码迷,mamicode.com
首页 > 数据库 > 详细

由于 MySQL 版本问题导入报错

时间:2018-09-03 11:12:55      阅读:1005      评论:0      收藏:0      [点我收藏+]

标签:数据库版本   tables   instead   错误日志   require   ransient   fetch   structure   present   

问题:
导入 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 版本问题导入报错

标签:数据库版本   tables   instead   错误日志   require   ransient   fetch   structure   present   

原文地址:http://blog.51cto.com/linux10000/2169355

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!