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 服务器的访问权限时,会出现此类错误。
为了避免此类问题,我们应该更改 系统用户的角色。
试试这个:
- 打开终端并执行此命令=> sudo su postgres
- 输入postgres系统用户
的密码
- 创建用户 postgres -s
- psql 模板 1
- 用密码改变角色 postgres 'postgres';
- \q
- 重启 Odoo 服务器
我已经在 ubuntu、
上安装了带有 pgAdmin 形式 EnterpriseDB 的 Postgres 9.3工作正常。我创建的用户名是 postgres 密码也是 postgres .
然后从 bitnami 安装 odoo 8,之后我的 postgres 9.3(以前的)服务器没有连接并给出以下错误:
PostgreSQL: Role postgres does not exist
当系统用户没有启动 Odoo 服务器/Postgres 服务器的访问权限时,会出现此类错误。
为了避免此类问题,我们应该更改 系统用户的角色。
试试这个:
- 打开终端并执行此命令=> sudo su postgres
- 输入postgres系统用户 的密码
- 创建用户 postgres -s
- psql 模板 1
- 用密码改变角色 postgres 'postgres';
- \q
- 重启 Odoo 服务器