sphinx-searchHow to use the MySQL protocol in SphinxSearch?
SphinxSearch supports the MySQL protocol, which allows you to access the search engine using the same commands as you would use for a MySQL database. To use the MySQL protocol, you need to start the searchd daemon with the --mysql-socket
option.
searchd --mysql-socket /tmp/mysql.sock
Once the daemon is running, you can connect to it using the mysql
command line client.
mysql -S /tmp/mysql.sock
Code explanation
- Start the searchd daemon with the
--mysql-socket
option. - Connect to the daemon using the
mysql
command line client. - Execute SQL queries against the search engine.
Helpful links
More of Sphinx Search
- How to order search results by relevance in SphinxSearch?
- How to specify stop words in SphinxSearch?
- How to get the version of SphinxSearch?
- How to use SphinxSearch with PHP?
- How to use regexp_filter in SphinxSearch?
- How to use query_log_format in SphinxSearch?
- How to configure max_children in SphinxSearch?
- How to use forward slash in SphinxSearch?
- How to use sql_attr_float in SphinxSearch?
See more codes...