网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

mysql/innodb_table_stats问题解决

时间:2024-10-14 09:52:41

1、产生原因根据提示:是数据库innodb_table_stats 表中table_name一栏长度异常导致的。

2、解决方法1:执行mysl更新mysql_upgrade --host=‘127.0.0.1’ --port=3306 --user=‘root’ --password=“root”2:重启数据库mysqlservice mysql restart

3、官网bug修改mysql 官网Bug FixedBugs FixedImportant Change; Partitioning: After creating partitioned InnoDB tables with very long names, the table_name columns in the corresponding entries in the mysql.innodb_index_stats and mysql.innodb_table_stats system tables were truncated. To fix this issue, the length of the table_name column in each of these tables has been increased from 64 to 199 characters. In both cases, this is now the same as the lengths of these columns in MySQL 8.0.When upgrading to this release, use mysql_upgrade to effect these changes in your MySQL installation. In the event that you fail to do this, MySQL generates the warning Table mysql/innodb_table_stats has length mismatch in the column name table_name. Please run mysql_upgrade in the error log.

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com