【问题标题】:Trouble connecting to Sphinx MySQL in development在开发中无法连接到 Sphinx MySQL
【发布时间】:2014-12-02 17:32:23
【问题描述】:

我在我的 Rails 应用程序中安装了 Thinking Sphinx。在 Heroku 中一切正常,但在本地我无法启动和运行任何东西。

当我尝试运行 rake ts:index 时,我得到了

sh: indexer: command not found

当我尝试在应用中使用搜索功能时,我得到了

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' (61) - SELECT * FROM `book_core` WHERE MATCH('economics') AND `sphinx_deleted` = 0 LIMIT 0, 20 OPTION field_weights=(title=16,author=7); SHOW META

感谢您的帮助!

【问题讨论】:

    标签: mysql ruby-on-rails ruby ruby-on-rails-3 thinking-sphinx


    【解决方案1】:

    听起来你没有安装 Sphinx 本身:

    http://pat.github.io/thinking-sphinx/installing_sphinx.html

    如果您确实安装了它,但它仍然没有启动,那么可能可执行文件不在您的 PATH 环境变量中?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-09
      相关资源
      最近更新 更多