我剛安裝的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