# 设置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 | +--------+