【发布时间】:2013-03-24 18:41:01
【问题描述】:
当我运行 rake ts:index 时,我收到以下错误:
Generating Configuration to /Users/main/rails_projects/glassboard/config/development.sphinx.conf
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 '/Users/main/rails_projects/glassboard/config/development.sphinx.conf'...
indexing index 'user_core'...
ERROR: index 'user_core': sql_connect: FATAL: role "root" does not exist
(DSN=pgsql://root:***@localhost:5432/glassboard_development).
total 0 docs, 0 bytes
total 0.005 sec, 0 bytes/sec, 0.00 docs/sec
skipping non-plain index 'user'...
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
网上找不到关于这个错误的信息,Sphinx 我的数据库有什么问题?
我的操作系统是 Mac 10.6.8,我使用的是 (PostgreSQL) 9.1.4。
【问题讨论】:
-
它正在尝试以用户
root的身份进行连接,但没有。以您的数据库存在的用户身份连接。 -
知道我该怎么做吗?我正在尝试来自 - articles.slicehost.com/2009/5/7/… 的说明,但我收到 ERROR: permission denied to create role 即使我 su 进入管理员帐户
-
您必须以 PostgreSQL 超级用户或具有
CREATEROLE权限的用户身份连接才能创建用户。您认为是管理员的帐户不是。在典型安装中,您会使用postgres帐户,但您没有告诉我们有关您的操作系统、Pg 安装、Pg 版本等的任何信息。 -
我的操作系统是 Mac 10.6.8,我使用的是 (PostgreSQL) 9.1.4。您还需要什么其他信息?我没有创建 postgres 帐户,你是说我需要在我的 Mac 上创建一个名为 postgres 的新用户?有什么方法可以让我的标准登录帐户成为 Postgres 超级用户?
-
我与超级用户打交道的问题在这里得到了解决:stackoverflow.com/questions/15791406/…
标签: ruby-on-rails postgresql sphinx thinking-sphinx