搭建教程:
先导入md5.phpinfo.me.sql
下载sphinx http://sphinxsearch.com/ 我用的是windows版的 当然linux也差不多
创建配置文件sphinx-zh/bin/sphinx.conf
#
# Minimal Sphinx configuration sample (clean, simple, functional)
#
source src1
{
type = mysql
sql_host = localhost
sql_user = root
sql_pass = 1141056911
sql_db = md5
sql_port = 3306
sql_query = SELECT `id`,`username`,`password`,`email`,`salt`,`order` FROM md5_sgk
sql_query_info = SELECT * FROM md5_sgk WHERE id=$id
}
index test1
{
source = src1
path = D:/sphinx-zh/data/
docinfo = extern
charset_type = utf-8
chinese_dictionary = D:/sphinx-zh/etc/xdict
}
indexer
{