在Percona 5.6.19服务器上,我尝试在表上运行OPTIMIZE:
mysql> optimize table mydb.mytable;
Optimize正确运行但由于空间问题而停止......
现在,当我想再次运行它时:
+------------------------------+----------+----------+-------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------------------+----------+----------+-------------------------------------------------------------------+
| mydb.mytable | optimize | note | Table does not support optimize, doing recreate + analyze instead |
| mydb.mytable | optimize | error | Table 'mydb/#sql-ib1676944' already exists |
| mydb.mytable | optimize | status | Operation failed |
+------------------------------+----------+----------+-------------------------------------------------------------------+
所以,我试图删除这个临时表:
mysql> use mydb
mysql> DROP TABLE
#mysql50 ## SQL-ib1676944 ;
但我收到了这条消息:
错误1051(42S02):未知的表格' mydb。#mysql50 ## sql-ib1676944'
如果我搜索它:
mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE '%#sql%';
+----------+------------------------+------+--------+---------+-------------+------------+---------------+
| TABLE_ID | NAME | FLAG | N_COLS | SPACE | FILE_FORMAT | ROW_FORMAT | ZIP_PAGE_SIZE |
+----------+------------------------+------+--------+---------+-------------+------------+---------------+
| 1693810 | mydb/#sql-ib1676944 | 1 | 6 | 1693796 | Antelope | Compact | 0 |
+----------+------------------------+------+--------+---------+-------------+------------+---------------+
我不知道如何删除此表,任何人都可以提供帮助?
问候
PS:我使用了这个https://dev.mysql.com/doc/refman/5.7...-datadict.html