通过 MySQL 协议连接到 Sphinx 时出错
Error connecting to Sphinx via the MySQL protocol
我在我的 Rails 应用程序中使用 gem 'thinking-sphinx', '~> 3.1.1'
。我按照 Git 中心的所有步骤进行安装 thinking-sphinx
,但是当我搜索记录时它给我错误
Error connecting to Sphinx via the MySQL protocol. Error connecting to
Sphinx via the MySQL protocol.
Can't connect to MySQL server on
'127.0.0.1' (111) - SELECT * FROM listing_core
, listing_delta
WHERE MATCH('product 1') AND community_ids
= 1 AND
sphinx_deleted
= 0 ORDER BY sort_date
DESC LIMIT 0, 24 OPTION
field_weights=(title=10, category=8, description=3); SHOW META
Sphinx 守护程序似乎未 运行ning。您需要 运行 rake ts:start
任务来启动守护进程。
我在我的 Rails 应用程序中使用 gem 'thinking-sphinx', '~> 3.1.1'
。我按照 Git 中心的所有步骤进行安装 thinking-sphinx
,但是当我搜索记录时它给我错误
Error connecting to Sphinx via the MySQL protocol. Error connecting to Sphinx via the MySQL protocol.
Can't connect to MySQL server on '127.0.0.1' (111) - SELECT * FROM
listing_core
,listing_delta
WHERE MATCH('product 1') ANDcommunity_ids
= 1 ANDsphinx_deleted
= 0 ORDER BYsort_date
DESC LIMIT 0, 24 OPTION field_weights=(title=10, category=8, description=3); SHOW META
Sphinx 守护程序似乎未 运行ning。您需要 运行 rake ts:start
任务来启动守护进程。