mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
52 lines
2 KiB
Text
52 lines
2 KiB
Text
Table Op Msg_type Msg_text
|
|
test.innodb_stats_drop_locked analyze status Engine-independent statistics collected
|
|
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
|
|
connect con1,localhost,root,,;
|
|
connection con1;
|
|
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 COLLATE=latin1_swedish_ci STATS_PERSISTENT=1
|
|
DROP TABLE innodb_stats_drop_locked;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
connection default;
|
|
disconnect con1;
|
|
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
|
|
DELETE FROM mysql.innodb_index_stats WHERE database_name='test' AND table_name='innodb_stats_drop_locked';
|
|
DELETE FROM mysql.innodb_table_stats WHERE database_name='test' AND table_name='innodb_stats_drop_locked';
|