MySQL Variables mecab_rc_file 数据库 参数变量解释及正确配置使用
本站中文解释
mecab_rc_file参数是MySQL定义的一个变量,主要用于指定MeCab包的配置文件所在的路径。它接受一个文件路径作为字符串,如/etc/MeCab/mecabrc.default。要设置该变量,需要使用MySQL命令行客户端,或者使用MySQL数据库管理工具,比如phpMyAdmin,在MySQL命令行客户端里,可以使用下列命令来设置mecab_rc_file参数:
SET GLOBAL mecab_rc_file=”/etc/MeCab/mecabrc.default”;
要使修改参数的内容生效,需要重启MySQL服务。
官方英文解释
mecab_rc_file
Command-Line Format | --mecab-rc-file=file_name |
---|---|
System Variable | mecab_rc_file |
Scope | Global |
Dynamic | No |
Type | File name |
The mecab_rc_file
option is used when
setting up the MeCab full-text parser.
The mecab_rc_file
option defines the path
to the mecabrc
configuration file, which
is the configuration file for MeCab. The option is read-only
and can only be set at startup. The
mecabrc
configuration file is required to
initialize MeCab.
For information about the MeCab full-text parser, see
Section 12.10.9, “MeCab Full-Text Parser Plugin”.
For information about options that can be specified in the
MeCab mecabrc
configuration file, refer
to the
MeCab
Documentation on the
Google
Developers site.