psql: FATAL: role “postgres” does not exist 解决方案

当时想做的事情,是运行一个创建数据库的脚本。找到的解决方案差不多和下面这个链接相同。

http://stackoverflow.com/questions/15301826/psql-fatal-role-postgres-does-not-exist

实际上做的事情就是login in 用别的帐号

然后 ,在postgres的虚拟机里(而不是terminal)

CREATE USER postgres SUPERUSER;

实际上这个对我来说就够了。解决了 role does not exist的问题。

posted on 2013-07-27 01:47  褐鹤  阅读(18578)  评论(0编辑  收藏  举报

导航