赞
踩
本文翻译自:PostgreSQL error: Fatal: role “username” does not exist
I'm setting up my PostgreSQL 9.1. 我正在设置我的PostgreSQL 9.1。 I can't do anything with PostgreSQL: can't createdb
, can't createuser
; 我不能做任何事情的PostgreSQL:不能createdb
,不能createuser
; all operations return the error message 所有操作都返回错误消息
Fatal: role h9uest does not exist
h9uest
is my account name, and I sudo apt-get install
PostgreSQL 9.1 under this account. h9uest
是我的帐户名,我在这个帐户下sudo apt-get install
PostgreSQL 9.1。
Similar error persists for the root
account. root
帐户仍然存在类似的错误。
参考:https://stackoom.com/question/o0mF/PostgreSQL错误-致命-角色-用户名-不存在
Use the operating system user postgres
to create your database - as long as you haven't set up a database role with the necessary privileges that corresponds to your operating system user of the same name ( h9uest
in your case): 使用
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。