【发布时间】:2016-01-26 16:20:56
【问题描述】:
在 Ubuntu 上全新安装。跑了:
sudo apt-get update
sudo apt-get install mysql-client
sudo apt-get install sphinx search
RAILS_ENV=development bundle exec rake ts:configure 运行正常,但是当RAILS_ENV=development bundle exec rake ts:index 被调用时,所有索引都返回
indexing index 'whatever_core'...
ERROR: index 'whatever_core': sql_connect: fe_sendauth: no password supplied
(DSN=pgsql://main:***@localhost:5432/same_development).
Thinking_sphinx.yml 配置为:
development:
bin_path: /usr/bin
pid_file: /home/main/same/shared/tmp/searchd.pid
configuration_file: /home/main/same/shared/config/development.sphinx.conf
indices_location: /home/main/same/shared/sphinx
use_64_bit: true
# enable_star: true
min_infix_len: 2
# max_matches: 1000
mysql41: 9313
mem_limit: 128M
utf8: true
这种身份验证以前从未成为问题...不知道该怎么做。
【问题讨论】:
标签: thinking-sphinx