Page 1 of 1

ERROR 1932 (42S02): Table 'mysql.innodb_index_stats' doesn't exist in engine

Posted: Mon Jan 09, 2017 7:39 pm
by jeniffer
I am getting the below error in mysql log file.

ERROR 1932 (42S02): Table 'mysql.innodb_index_stats' doesn't exist in engine

Re: ERROR 1932 (42S02): Table 'mysql.innodb_index_stats' doesn't exist in engine

Posted: Mon Jan 09, 2017 7:43 pm
by Martin
Hello,

First drop the table in mysql database and then create the table.

mysql> use mysql;

database changed

mysql> CREATE TABLE `innodb_index_stats` (
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,
`index_name` varchar(64) COLLATE utf8_bin NOT NULL,
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`stat_name` varchar(64) COLLATE utf8_bin NOT NULL,
`stat_value` bigint(20) unsigned NOT NULL,
`sample_size` bigint(20) unsigned DEFAULT NULL,
`stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;


This will create "innodb_index_stats" table.

------------------------------
Martin N
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree