1
Mysql客戶端有權訪問,密碼爲true。 MySQL的用戶對所有數據庫的所有權限:sphinxsearch:錯誤:索引'ad1_offers':sql_connect:拒絕訪問用戶
- GRANT SELECT,
- INSERT,
- UPDATE,
- DELETE,
- CREATE,
- DROP,
- RELOAD,
- SHUTDOWN,
- PROCESS, 個
- 參考,
- INDEX,
- ALTER,
- SHOW數據庫,
- SUPER,
- 創建臨時表,LOCK TABLES,
- EXECUTE,
- REPLICATION SLAVE,REPLICATION CLIENT,
- CREATE VIEW,SHOW VIEW,
- CREATE ROU TINE,ALTER常規,
- CREATE USER,
- 事件
- 觸發。 TO 'AD1' @ '%'
我有錯誤:
/usr/bin/indexer --all
Sphinx 2.2.10-id64-release (2c212e0)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
indexing index 'ad1_offers'...
ERROR: index 'ad1_offers': sql_connect: Access denied for user ad1'@'192.168.0.177' (using password: YES) (DSN=mysql://ad1:***@192.168.0.177:3306/ad1).
或
/etc/init.d/sphinxsearch start
Starting sphinxsearch: Sphinx 2.2.10-id64-release (2c212e0)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
listening on 192.168.0.177:9312
listening on 192.168.0.177:9306
precaching index 'ad1_offers'
WARNING: index 'ad1_offers': preload: failed to open /var/lib/sphinxsearch/data/ ad1_offers.sph: No such file or directory; NOT SERVING
FATAL: no valid indexes to serve ERROR.
spnix.conf:
type = mysql
sql_host = 192.168.0.177
sql_user = ad1
sql_pass = ....
sql_db = ad1
sql_port = 3306 # optional, default is 3306
MySQL客戶端具有通過與通用戶AD1訪問Db的AD1 ....從主機(本地主機),所以MySQL用戶都授予權限 –
的sphinx.con是:sql_host = 192.168.0.177 sql_user = AD1 sql_pass = .... sql_db = ad1 sql_port = 3306 –
#mysql -u ad1 -p -h 192.168.0.177 輸入密碼: 歡迎使用MySQL監視器。命令結束於;或\ g。 您的MySQL連接ID爲85899 服務器版本:5.5.46-0 + deb8u1(Debian) –