Ubuntu上的全新安装。 RAN:
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
此身份验证以前从未出现过问题......不确定该怎么做。
答案 0 :(得分:0)
验证database.yml
它是否具有正确的username
和password
配置。