InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..
Post Reply
jeniffer
Posts: 0
Joined: Wed Sep 21, 2016 3:23 pm

InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

Post by jeniffer »

I am getting the below error in mysql logs. Please help

InnoDB: Error: Table "mysql"."innodb_table_stats" not found.



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

Re: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

Post by Martin »

Hello,

Drop "innodb_table_stats" table.

do the below steps to create the table

mysql>

mysql> USE mysql;

mysql> CREATE TABLE `innodb_table_stats` (
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`n_rows` bigint(20) unsigned NOT NULL,
`clustered_index_size` bigint(20) unsigned NOT NULL,
`sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`database_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;


------------------------------
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



Post Reply