我刚安装的Postgres(与BREW),并与pg_ctl -D /usr/local/var/postgres -l logfile start
PostgreSQL的 - Postgres的@本地失败FATAL:角色不存在
启动它,我现在尝试连接到它的终端,但得到如下:
连接到PostgreSQL - Postgres的@本地失败 FATAL:角色“我”不存在
问题可能是我第一次安装postgres.app再没有得到它的工作的权利,然后删除它。
我刚安装的Postgres(与BREW),并与pg_ctl -D /usr/local/var/postgres -l logfile start
PostgreSQL的 - Postgres的@本地失败FATAL:角色不存在
启动它,我现在尝试连接到它的终端,但得到如下:
连接到PostgreSQL - Postgres的@本地失败 FATAL:角色“我”不存在
问题可能是我第一次安装postgres.app再没有得到它的工作的权利,然后删除它。
您不会显示您输入的内容以及您做了哪个用户,但是从错误消息中我会说您应该将-U postgres
添加到psql
调用中。
享受有史以来最简单的赏金..可能 – SuperUberDuper
好吧,如果它为你做了诡计,这是任务完成。如果没有,请告诉我更多细节。 –
我可以在15小时内奖励 – SuperUberDuper
您最初应该使用的账号是'postgres',它不需要密码。 – Nicarus
我运行'su postgres'然后'initdb /usr/local/var/postgres9.5 -E utf8',但我得到'创建目录/usr/local/var/postgres9.5 ... initdb:无法创建目录“ /usr/local/var/postgres9.5“:权限被拒绝” – SuperUberDuper
由于某种原因,当我运行initdb我得到了var/postgres dir创建的用户根 – SuperUberDuper