【发布时间】:2012-08-08 19:15:02
【问题描述】:
我正在设置我的 PostgreSQL 9.1。我不能用 PostgreSQL 做任何事情:不能createdb,不能createuser;所有操作都返回错误信息
Fatal: role h9uest does not exist
h9uest是我的账号名,我在这个账号下sudo apt-get installPostgreSQL 9.1。root 帐户仍然存在类似错误。
【问题讨论】:
-
之后你可能会遇到
FATAL: role "user" is not permitted to log in,请查看dba.stackexchange.com/questions/57723/…。 -
我回答了这个问题here。也阅读本教程“How to Install Postgres for Ubuntu Linux”。
-
@Ruzenhack 该教程链接正是我所需要的!非常清晰和简单
-
psql -h localhost -U postgres
-
如果您收到错误
role doesn't exist和错误can't create role, it already exists,请查看此答案:stackoverflow.com/a/56658832/1689770