USE mysql;
SHOW FULL TABLES WHERE table_type = ‘base table’;
/* returns
…
innodb_index_stats BASE TABLE
innodb_table_stats BASE TABLE
…
*/
SELECT * from innodb_table_stats;
/* returns
Error CODE: 1146
TABLE ‘mysql.innodb_table_stats’ doesn’t exist
*/
SHOW CREATE TABLE innodb_table_stats;
/* returns
Error CODE: 1146
TABLE ‘mysql.innodb_table_stats’ doesn’t exist
*/
Well .. the table exists and also does not exist at the same time. There is a free choice from the shelf! But what is happening? I am not sure yet. It was reported to this bug report by a Linux user, and it is reproducible for me on Windows. Miguel (the MySQL supporter, who is on it) cannot reproduce - not yet at least.
First of all this …
[Read more]