Published on [Permalink]
Reading time: 1 minute
Posted in:

For Leopard, installing Sphinx from ports with mysql binary from mysql

Given I’ve installed sphinx

And I’ve used mac port for the install

When I run sphinx  indexer

Then it expects the mysql socket to be in /opt/local/var/run/mysql5/mysqld.sock

Given I’ve installed mysql

And I’ve used the binary from mysql

When I run mysqld

Then it use the mysql socket in /tmp/mysql.sock

To get sphinx indexer to use my installed version of mysql, I have to change make a change in the sphinx.conf file to tell sphinx indexer to use the mysql socket in /tmp/mysql.sock:

in some source …

{

sql_sock = /tmp/mysql.sock

}

Check  sphinx_docs [SphinxWiki] for reference.