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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: