Sphinx Search mysql client on production server

随声附和 提交于 2019-12-10 12:14:49

问题


I want to connect to SphinxQL on my production server to execute sphinx queries on mysql database,

Please note I ran the following commands in the production server terminal(Ubuntu 10.04) by connecting to it remotely.

mysql -h 127.0.0.1 -P 9312

mysql -h 127.0.0.1 -P 9306

mysql -h <<my_production_ip_address>> -P 9312

mysql -h <<my_production_ip_address>> -P 9306

Tried changing the bind_address in /etc/mysql/my.cnf to my_production_ip_address.

I want to run a sphinx query on my production server for debugging.

Please help.

Thanks.


回答1:


Please make sure you have the following line in sphinx configuration file (usually sphinx.conf) under searchd {...} section:

listen = 9306:mysql41

if not, then please add it and restart Sphinx.

Please also make sure that:

  1. Sphinx daemon (searchd) is up and running
  2. Sphinx is listening port 9306 (run netstat -anp | grep LIST )
  3. Firewall is configured to pass network connection to port 9306 (it usually does)

Hope this helps.



来源:https://stackoverflow.com/questions/11374558/sphinx-search-mysql-client-on-production-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!