小编sni*_*ode的帖子

通过Linux命令行连接到SphinxQL

我试图通过Linux 命令行以这种方式连接到SphinxQL服务器:

> mysql -P 9306

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Run Code Online (Sandbox Code Playgroud)

我的Sphinx配置文件有2个监听条目:

listen                  = 9312
listen                  = 9306:mysql41
Run Code Online (Sandbox Code Playgroud)

searchd守护程序正在运行:

> ps ax | grep searchd
10727 ?        S      0:00 /usr/local/sphinx/bin/searchd
10728 ?        Sl     0:00 /usr/local/sphinx/bin/searchd
Run Code Online (Sandbox Code Playgroud)

常规搜索查询完美运行:

> /usr/local/sphinx/bin/search StackOverflow | more

Sphinx 2.0.4-release (r3135)
Copyright (c) 2001-2012, Andrew Aksyonoff
Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/usr/local/sphinx/etc/sphinx.conf'...
index 'test1': query 'StackOverflow ': returned 2 matches of 2 total …
Run Code Online (Sandbox Code Playgroud)

mysql command-line sphinx search-engine

24
推荐指数
2
解决办法
2万
查看次数

标签 统计

command-line ×1

mysql ×1

search-engine ×1

sphinx ×1