# 設置innodb_ft_aux_table系統參數 root@localhost : test 11:50:16> SET GLOBAL innodb_ft_aux_table = 'test/test'; Query OK, 0 rows affected (0.00 sec) # 創建全文索引 root@localhost : test 11:26:30> select * from test; +------+---------+ | id | test | +------+---------+ | 1 | a b c d | | 1 | a b c d | | 2 | a b c d | +------+---------+ 3 rows in set (0.00 sec) root@localhost : test 11:51:06> alter table test add fulltext i_test(test); Query OK, 0 rows affected, 1 warning (0.13 sec) Records: 0 Duplicates: 0 Warnings: 1 # 刪除表中的數據 root@localhost : test 11:55:09> delete from test where id=1; Query OK, 2 rows affected (0.06 sec) # 查詢INNODB_FT_DELETED表和INNODB_FT_BEING_DELETED表中的數據,可以發現INNODB_FT_BEING_DELETED為空值,而INNODB_FT_DELETED表存放著被刪除的全文索引值 root@localhost : test 11:56:12> select * from information_schema.INNODB_FT_DELETED; +--------+ | DOC_ID | +--------+ | 2 | | 3 | +--------+