ktk*_*hik 11 postgresql installation ubuntu role
我在ubuntu 12.04服务器上,我正在尝试安装postgresql.截至目前,我已成功安装但无法配置它.我需要创建一个角色来继续前进,我在终端中运行此命令:
root@hostname: createuser -s -r postgres
它说:
createuser: could not connect to database postgres: FATAL: role "root" does not exist
很好,所以我做了:
su - postgres
然后又试了一次
postgres@hostname: createuser -s -r postgres
我得到了错误
createuser: could not connect to database postgres: FATAL: role "postgres" does not exist
当我这样做时,我得到同样的错误
psql -d dbname
它就像一个循环,我无法创建角色,postgres因为角色postgres尚不存在.
我该如何解决 ?
postgres版本似乎是9.1.x,ubuntu版本是12.10
结果我安装了postgres-xc并postgresql在我的机器上.我不得不彻底击倒postgres-xc.这样做有点困难,因为总是有错误--purge remove postgres-xc,卸载无法继续.
似乎有某种包装错误.(有关启动板的详细信息).
最后,我终于实现了这个,使其工作.
之后我卸载了postgresql并重新安装它以使其工作.
| 归档时间: |
|
| 查看次数: |
24155 次 |
| 最近记录: |