My socket file is located here:
/var/run/mysqld/mysqld.sock
When I do:
rake thinking_sphinx:start
I get:
rake aborted!
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I want to tell thinking_sphinx where my socket file is. How is this possible? This issue appeared after performing a hard reboot of my slice on Slicehost.
EDITED to be (hopefully) clearer:
you can specify the mysql socket to be used in sphinx search’s configuration file,
sphinx.conf, viasql_sock:(note that it depends on the
sql_hostsetting whether this value will actually be used)you can also use thinking_sphinx’ configuration file,
RAILS_ROOT/config/sphinx.yml, to set (overwrite) these values: