mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
5d20f7b346
Made sure that innodb tables for persistent statistics would not considered by the server as system tables.
45 lines
1.5 KiB
Text
45 lines
1.5 KiB
Text
Table Op Msg_type Msg_text
|
|
test.innodb_stats_drop_locked analyze status OK
|
|
SET autocommit=0;
|
|
SELECT table_name FROM mysql.innodb_table_stats
|
|
WHERE table_name='innodb_stats_drop_locked'
|
|
FOR UPDATE;
|
|
table_name
|
|
innodb_stats_drop_locked
|
|
SELECT table_name FROM mysql.innodb_index_stats
|
|
WHERE table_name='innodb_stats_drop_locked'
|
|
FOR UPDATE;
|
|
table_name
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
ALTER TABLE innodb_stats_drop_locked DROP INDEX c_key;
|
|
Warnings:
|
|
Warning 1205 Unable to delete statistics for index c_key from mysql.innodb_index_stats because the rows are locked: Lock wait timeout. They can be deleted later using DELETE FROM mysql.innodb_index_stats WHERE database_name = 'test' AND table_name = 'innodb_stats_drop_locked' AND index_name = 'c_key';
|
|
SHOW CREATE TABLE innodb_stats_drop_locked;
|
|
Table Create Table
|
|
innodb_stats_drop_locked CREATE TABLE `innodb_stats_drop_locked` (
|
|
`c` int(11) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 STATS_PERSISTENT=1
|
|
DROP TABLE innodb_stats_drop_locked;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
COMMIT;
|
|
SELECT table_name FROM mysql.innodb_table_stats
|
|
WHERE table_name='innodb_stats_drop_locked';
|
|
table_name
|
|
innodb_stats_drop_locked
|
|
SELECT table_name FROM mysql.innodb_index_stats
|
|
WHERE table_name='innodb_stats_drop_locked';
|
|
table_name
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|
|
innodb_stats_drop_locked
|