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

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..

Moderator: Staff

Post Reply
jeniffer
Posts: 0
Joined: Wed Sep 21, 2016 3:23 pm

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

Post 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


Martin
Posts: 36
Joined: Fri Sep 16, 2016 10:34 am

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

Post 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


If you are looking for assistance in server management, please get in touch with our support.
Post Reply