首页 > 代码库 > centos+php+coreseek+sphinx+mysql之二sphinx配置篇

centos+php+coreseek+sphinx+mysql之二sphinx配置篇

先进入文件夹进行以下操作

cd /usr/local/coreseek/etc
cp sphinx.conf.dist sphinx.conf
source src1
{
    sql_host        = 127.0.0.1
    sql_user        = root
    sql_pass        = #数据库密码
    sql_db         = #表名
    sql_query_pre   = SET NAMES utf8
}
index test1
{
    source        = src1
    path            =/usr/local/coreseek/var/data/test1
    charset_type    = zh_cn.utf-8
    charset_dictpath     = /usr/local/mmseg3/etc/
}    

进行了基本设置

 

centos+php+coreseek+sphinx+mysql之二sphinx配置篇