ThinkingSphinx :: SphinxError(未知的MySQL错误) [英] ThinkingSphinx::SphinxError (Unknown MySQL error)

查看:74
本文介绍了ThinkingSphinx :: SphinxError(未知的MySQL错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Ruby on Rails项目上运行gem'thinking-sphinx',但是出了点问题.当我在任何模型上运行任何 search 命令时,都会看到此错误:ThinkingSphinx :: SphinxError(未知的MySQL错误).

I try to run gem 'thinking-sphinx' on my Ruby on Rails project, but something was wrong. When I run any search command on any model, I see this error: ThinkingSphinx::SphinxError (Unknown MySQL error).

更多详细信息:

More details:

  • MacOS Mojave -v 10.14.3
  • mysql -v 8.0.15(首先安装)
  • Sphinx -v 2.2.11_2(通过"brew install sphinx"安装)
  • thinking-sphinx -v 4.2.0
  • Rails -v 5.2.2

在运行 search 命令之前,我先运行了 rails ts:index rails ts:start
我在做什么错了?

Before run search command, I runned rails ts:index and rails ts:start
What am I doing wrong?

推荐答案

只需从 gem"mysql2",'〜>更改mysql2.0.4.6'转换为 gem"mysql2",'0.4.10'版本,它对我有用.谢谢

Just changed mysql2 from gem "mysql2", '~> 0.4.6' to gem "mysql2", '0.4.10' version, and it worked for me. Thanks

这篇关于ThinkingSphinx :: SphinxError(未知的MySQL错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆