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

生产服务器上的Sphinx搜索mysql客户端,sphinx,thinking-sphinx,production,mysql,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>> -

我想连接到生产服务器上的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
mysql-h127.0.0.1-p9312
mysql-H127.0.0.1-p9306
mysql-h-p9312
mysql-h-p9306
尝试将/etc/mysql/my.cnf中的绑定地址更改为我的生产ip地址。

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
我想在生产服务器上运行sphinx查询以进行调试

请帮忙


谢谢。

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

listen = 9306:mysql41
如果没有,请添加它并重新启动Sphinx

还请确保:

  • Sphinx守护程序(searchd)已启动并正在运行
  • Sphinx正在侦听端口9306(运行netstat-anp | grep LIST)
  • 防火墙配置为将网络连接传递到端口9306(通常是这样)

  • 希望这有帮助。

    成功了,谢谢!。我想听听为什么需要它?Sphinx支持两种不同的协议:二进制API和SphinxQL。为了与旧版本兼容,默认情况下,Sphinx提供API调用(以及用于分布式索引的主代理Sphinx连接),因此您必须让它在单独的端口上侦听以提供SphinxQL查询。我不知道为什么它需要两个不同的端口,但我想这是因为与mysql客户端兼容。