先進入文件夾進行如下操做sql
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/ }
進行了基本設置數據庫