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

  • SEARCH
  • Home
  • 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 8349105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:53:43+00:00 2026-06-09T07:53:43+00:00

I am trying to use Sphinx full-text search capability for my MySQL server. I

  • 0

I am trying to use Sphinx full-text search capability for my MySQL server.
I have setup a local Sphinx service based on the installation manual and able to do text search.

I can connect to

mysql.exe --host=127.0.0.1 port=9306

Where the port 9306 is the port configured in sphinx.conf:

searchd {
...
listen = 9306:mysql41
...
}

And do SphinxQL queries. I am using the default Sphinx example database shipped with the release package.

However I want to integrate Sphinx with my MySQL server, such that all the clients connecting to my sql server can do SphinxQL and I want to try it out with the MySQL sample database sakila

  • What are the steps to achieve that?
  • Do I need to convert the database engine from InnoDB to Sphinx?
  • Also, from what it seems, Sphinx can only index one (1) database
    table per configuration, how can I make sure that all tables in the
    MySQL database gets indexed?
  • 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-06-09T07:53:44+00:00Added an answer on June 9, 2026 at 7:53 am

    However I want to integrate Sphinx with my MySQL server, such that all the clients connecting to my sql server can do SphinxQL

    Can’t do that. Sphinx (when enabled for sphinxQL) just gives you a server that looks like a mysql one – ie it uses the same communications protocol – mainly so can just reuse mysql client libraries, rather than having to make a new one just for sphinx.

    They are different ‘servers’. You connect to a mysql server to run mysql commands; you connect to sphinx server to run sphinxQL commands.

    The application woudl have to connect to each ‘server’ seperately. Just imagine sphinx was something like postgres, you clearly dont connect to mysql and expect to be able to run postgresql.

    However there is SphinxSE – which is a fake mysql storage engine. You install it into mysql, and you can then create a table using this engine. Then you run mysql queries against this table, under the hood are contacts a running sphinx-server. So to mysql it looks like a table that contains data, this is most useful because can then ‘join’ this search table with the original data table to get results and the original data in one mysql query.

    The application then doesn’t have to connect to sphinx itself. SphinxSE does it for you.

    http://sphinxsearch.com/docs/current.html#sphinxse

    Do I need to convert the database engine from InnoDB to Sphinx?

    No. You keep the original data where it is, using what ever engine you like. Sphinx just provides an ‘index’ – it doesnt store the original data*. Its not a database as such, just provides for fast quering with its highly optimized indexing.

    Basically you ask sphinx for the unique id’s of documents matching a certain query. Then use those ids to lookup the data. SphinxAPI, sphinxSE and sphinxQL are just three different mechanisms of doing that.

    Also, from what it seems, Sphinx can only index one (1) database table per configuration,

    No. A single sphinx instance can host many indexes. And an index can have many sources. So can just create one index per table. Or if you mainly want to search them together, can just create one amalgamated index.

    —
    ** Edit to reply to question in comments: **

    When you say that, sphinx can host many indexes, is it relying solely in the sphinx.conf configuration file?

    You would probably define one sphinx index per table. So you would need a source/index pair for each table. (unless you wanted to index all tables in one index, whihch is possible too.

    It cant read the tables itself, and create config file, you have to define each index individually.

    When you say “gives you a server that looks like a mysql one” do you mean like a proxy,

    No. Not a proxy.

    where my MySQL client can connect to this Sphinx port and the client will think that its a MySQL server?

    Basically yes. The client will connect to it the same way it connects to a mysql-server.

     If so, then I can execute both MySQL SQL queries and also SphinxQL at the same connection?

    No. Impossible. Connect to mysql-server, to run mysql queries. Connect to searchd to run sphinxQL queries.

    Two connections, one per server.

    why my MySQL Workbench can’t connect to port 9306,

    Don’t know. Might be a firewall issue.

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

Sidebar

Related Questions

I was trying to connect to a Sphinx search server using its MySQL interface.
I am trying use gem tire to search in my application. I have tables
I’m trying to do a full-text search in three seperate tables and sort the
I'm trying to investigate sphinx rt indexes to use in future project and have
I have several different tables in my database and I'm trying to use Sphinx
I'm trying to use Sphinx API to get the text result all I get
I am trying to implement a sphinx search server on a website. The website
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on
Hi I'm trying use a datepicker on a field I have. I'm trying to
I'm trying to use Sphinx to document a 5,000+ line project in Python. It

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.