PostgreSQL:角色 postgres 不存在?

PostgreSQL: Role postgres does not exist?

我已经在 ubuntu、

上安装了带有 pgAdmin 形式 EnterpriseDB 的 Postgres 9.3

工作正常。我创建的用户名是 postgres 密码也是 postgres .

然后从 bitnami 安装 odoo 8,之后我的 postgres 9.3(以前的)服务器没有连接并给出以下错误:

PostgreSQL: Role postgres does not exist

当系统用户没有启动 Odoo 服务器/Postgres 服务器的访问权限时,会出现此类错误。

为了避免此类问题,我们应该更改 系统用户的角色。

试试这个:

  1. 打开终端并执行此命令=> sudo su postgres
  2. 输入postgres系统用户
  3. 的密码
  4. 创建用户 postgres -s
  5. psql 模板 1
  6. 用密码改变角色 postgres 'postgres';
  7. \q
  8. 重启 Odoo 服务器