Reputation: 11
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:
Before run search command, I runned rails ts:index and rails ts:start
What am I doing wrong?
Upvotes: 1
Views: 1245
Reputation: 6531
Just changed mysql2 from gem "mysql2", '~> 0.4.6'
to gem "mysql2", '0.4.10'
version, and it worked for me. Thanks
Upvotes: 1
Reputation: 16226
Sphinx v2.2 (and 3.0) is not compatible with MySQL v8. You'll either want to downgrade MySQL to 5.7 - which can be done with homebrew via brew install [email protected]
- and then uninstall and reinstall Sphinx, or download the binaries for Sphinx v3.1.1 (the first version to support MySQL v8) from the Sphinx website (the source code for that release is not currently available, hence it's not installable via homebrew).
Upvotes: 1