Eric Baldwin
Eric Baldwin

Reputation: 3491

Thinking Sphinx mistakenly looks for mysql instead of postgresql

My database.yml file and my Gemfile specify the use of postgresql. However, when I run

rake ts:index 

I get the error

rake aborted!
cannot load such file -- mysql2

Why is Thinking Sphinx looking for mysql?

Upvotes: 1

Views: 1234

Answers (1)

Eric Baldwin
Eric Baldwin

Reputation: 3491

mysql2 gem is required for connecting to Sphinx, so please include it even if you're using PostgreSQL as your database.

Reference: https://github.com/pat/thinking-sphinx

Upvotes: 3

Related Questions