Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3608542
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:30:52+00:00 2026-05-18T21:30:52+00:00

I installed sphinx a couple of months back for a postgres project and now

  • 0

I installed sphinx a couple of months back for a postgres project and now I have a project that uses mysql. I tried to remedy this with this line in my environments.rb:

ThinkingSphinx.database_adapter = :mysql

and I even generated a development.sphinx.conf for this project:

source article_core_0
{
  type = mysql
  sql_host = localhost
  sql_user = ***
  sql_pass = ***
  sql_db = ***_development
  sql_sock = /tmp/mysql.sock
  sql_query_pre = UPDATE `articles` SET `delta` = 0 WHERE `delta` = 1
  sql_query_pre = SET NAMES utf8
  sql_query_pre = SET TIME_ZONE = '+0:00'
  sql_query = SELECT SQL_NO_CACHE `articles`.`id` * 6 + 0 AS `id` , `articles`.`title` AS `title`, `articles`.`content` AS `content`, GROUP_CONCAT(DISTINCT IFNULL(`tags`.`tag`, '0') SEPARATOR ' ') AS `tag`, GROUP_CONCAT(DISTINCT IFNULL(`customer_categories`.`name`, '0') SEPARATOR ' ') AS `category`, CONCAT_WS(' ', `users`.`first_name`, `users`.`last_name`) AS `created_by_user_name`, `articles`.`id` AS `sphinx_internal_id`, 3448190970 AS `class_crc`, 0 AS `sphinx_deleted`, `articles`.`account_id` AS `account_id`, `articles`.`internal_only` AS `internal_only`, UNIX_TIMESTAMP(`articles`.`created_at`) AS `created_at`, UNIX_TIMESTAMP(`articles`.`updated_at`) AS `updated_at`, `articles`.`views` AS `views` FROM `articles` LEFT OUTER JOIN `articles_tags` ON `articles_tags`.`article_id` = `articles`.`id` LEFT OUTER JOIN `tags` ON `tags`.`id` = `articles_tags`.`tag_id` LEFT OUTER JOIN `articles_categories` ON `articles_categories`.`article_id` = `articles`.`id` LEFT OUTER JOIN `customer_categories` ON `customer_categories`.`id` = `articles_categories`.`customer_category_id` LEFT OUTER JOIN `users` ON `users`.`id` = `articles`.`created_by_id` WHERE (`articles`.`id` >= $start AND `articles`.`id` <= $end AND `articles`.`delta` = 0) GROUP BY `articles`.`id`, `articles`.`title`, `articles`.`content`, `users`.`first_name`, `users`.`last_name`, `articles`.`id`, `articles`.`account_id`, `articles`.`internal_only`, `articles`.`created_at`, `articles`.`updated_at`, `articles`.`views` ORDER BY NULL
  sql_query_range = SELECT IFNULL(MIN(`id`), 1), IFNULL(MAX(`id`), 1) FROM `articles` WHERE `articles`.`delta` = 0
  sql_attr_uint = sphinx_internal_id
  sql_attr_uint = class_crc
  sql_attr_uint = sphinx_deleted
  sql_attr_uint = account_id
  sql_attr_uint = views
  sql_attr_bool = internal_only
  sql_attr_timestamp = created_at
  sql_attr_timestamp = updated_at
  sql_query_info = SELECT * FROM `articles` WHERE `id` = (($id - 0) / 6)
}

problem is I keep getting this error:

Sphinx 0.9.9-rc2 (r1785)
Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/Users/eumir/rails_apps/hivemind/config/development.sphinx.conf'...
indexing index 'article_core'...
ERROR: source 'article_core_0': unknown type 'mysql'; skipping.
ERROR: index 'article_core': failed to configure some of the sources, will not index.
indexing index 'article_delta'...
ERROR: source 'article_delta_0': unknown type 'mysql'; skipping.
ERROR: index 'article_delta': failed to configure some of the sources, will not index.
distributed index 'article' can not be directly indexed; skipping.
indexing index 'contact_core'...
ERROR: source 'contact_core_0': unknown type 'mysql'; skipping.

Any help on this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:30:53+00:00Added an answer on May 18, 2026 at 9:30 pm

    It looks like you’ve compiled Sphinx to just support PostgreSQL, not MySQL. So you’ll need to recompile and reinstall Sphinx. You won’t need to change anything in Thinking Sphinx, it’s just a matter of modifying your database.yml (which I’m guessing you’ve already done), and you should be fine.

    Keep in mind that by default, Sphinx compiles for MySQL support only. I usually compile it for both MySQL and PostgreSQL, and my configure request from within the Sphinx source directory looks something like:

    ./configure --with-pgsql
    

    Hopefully that’s all that’s needed – unless you have MySQL set up in a non-standard location, then you may need to check other flags – run ./configure --help to see the various options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed Sphinx in order to document some Python modules and class I'm
I've installed the sphinx binaries and libraries and am now trying to install the
I installed WSS Infrastructure Update and MOSS Infrastructure Update ( http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx ) and now
I installed Sphinx and Thinking Sphinx for ruby on rails 2.3.2. When I search
I installed Sphinx and Thinking Sphinx on ruby-on-rails 2.3.2 and on Windows 7 pc.
I just installed Sphinx (distro: archlinux) downloading the source. Then I installed Thinking Sphinx
I've recently installed thinking-sphinx on my ruby on rails app. As first sight, everything
I installed ActiveReports from their site. The version was labeled as .NET 2.0 build
I installed the wxWidgets source code, compiled it and am linking the libraries thus
I installed Visual Studio 2005 ( with SP1 ) and made the default settings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.