INNODB_FT_CONFIG 表提供关于 FULLTEXT 索引及其关联处理的元数据,供 InnoDB 表使用。The INNODB_FT_CONFIG table provides
metadata about the FULLTEXT index and
associated processing for an InnoDB table.
此表最初为空。在查询它之前,将 innodb_ft_aux_table 系统变量的值设置为包含 FULLTEXT 索引的表的名称(包括数据库名称)(例如,test/articles)。This table is empty initially. Before querying it, set the value
of the innodb_ft_aux_table system
variable to the name (including the database name) of the table
that contains the FULLTEXT index (for example,
test/articles).
有关相关的使用信息和示例,请参见 第 17.15.4 节,“InnoDB INFORMATION_SCHEMA FULLTEXT 索引表”。For related usage information and examples, see Section 17.15.4, “InnoDB INFORMATION_SCHEMA FULLTEXT Index Tables”.
INNODB_FT_CONFIG 表具有以下列:The INNODB_FT_CONFIG table has these
columns:
KEY指定包含
FULLTEXT索引的InnoDB表的元数据项名称。The name designating an item of metadata for anInnoDBtable containing aFULLTEXTindex.该列的值可能会发生变化,具体取决于
InnoDB全文处理的性能调优和调试需求。键名及其含义包括:The values for this column might change, depending on the needs for performance tuning and debugging forInnoDBfull-text processing. The key names and their meanings include:optimize_checkpoint_limit:OPTIMIZE TABLE操作停止前的秒数。optimize_checkpoint_limit: The number of seconds after which anOPTIMIZE TABLErun stops.synced_doc_id:下一个要分配的DOC_ID。synced_doc_id: The nextDOC_IDto be issued.stopword_table_name:用户定义的停用词表的database/table名称。如果没有用户定义的停用词表,则VALUE列为空。stopword_table_name: Thedatabase/tablename for a user-defined stopword table. TheVALUEcolumn is empty if there is no user-defined stopword table.use_stopword:指示是否使用停用词表,该项在创建FULLTEXT索引时定义。use_stopword: Indicates whether a stopword table is used, which is defined when theFULLTEXTindex is created.
VALUE与相应
KEY列相关联的值,反映了InnoDB表的FULLTEXT索引某一方面的限制或当前值。The value associated with the correspondingKEYcolumn, reflecting some limit or current value for an aspect of aFULLTEXTindex for anInnoDBtable.
示例Example
mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_CONFIG;
+---------------------------+-------------------+
| KEY | VALUE |
+---------------------------+-------------------+
| optimize_checkpoint_limit | 180 |
| synced_doc_id | 0 |
| stopword_table_name | test/my_stopwords |
| use_stopword | 1 |
+---------------------------+-------------------+
注意事项Notes
该表仅用于内部配置。它不用于统计信息目的。This table is intended only for internal configuration. It is not intended for statistical information purposes.
你必须拥有
PROCESS权限才能查询此表。You must have thePROCESSprivilege to query this table.使用
INFORMATION_SCHEMACOLUMNS表或SHOW COLUMNS语句查看关于此表列的更多信息,包括数据类型和默认值。Use theINFORMATION_SCHEMACOLUMNStable or theSHOW COLUMNSstatement to view additional information about the columns of this table, including data types and default values.有关
InnoDBFULLTEXT搜索的更多信息,请参见 第 17.6.2.4 节,“InnoDB 全文索引”,以及 第 14.9 节,“全文搜索函数”。For more information aboutInnoDBFULLTEXTsearch, see Section 17.6.2.4, “InnoDB Full-Text Indexes”, and Section 14.9, “Full-Text Search Functions”.