Sphinx在生产服务器上搜索mysql客户端

时间:2012-07-07 11:22:48

标签: sphinx thinking-sphinx production mysql

我想在生产服务器上连接到SphinxQL,以便在mysql数据库上执行sphinx查询,

请注意我通过远程连接在生产服务器终端(Ubuntu 10.04)中运行以下命令。

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

尝试将/etc/mysql/my.cnf中的bind_address更改为my_production_ip_address。

我想在我的生产服务器上运行sphinx查询以进行调试。

请帮忙。

感谢。

1 个答案:

答案 0 :(得分:2)

请确保在searchd {...}部分的sphinx配置文件(通常是sphinx.conf)中有以下行:

listen = 9306:mysql41

如果没有,那么请添加它并重新启动Sphinx。

请确保:

  1. Sphinx守护程序(searchd)已启动并正在运行
  2. Sphinx正在侦听端口9306(运行netstat -anp | grep LIST)
  3. 防火墙配置为将网络连接传递到端口9306(通常是这样)
  4. 希望这有帮助。

相关问题