Why postgresql on mac asks me for password after fresh install?

后端 未结 3 1755
后悔当初
后悔当初 2021-01-02 19:21

I just installed postgresql on a Macbook with brew install postgresql. Then I try to psql, but it requires password and then show

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 19:59

    The answer by Pramida almost worked for me... the difference is I was using 9.6 Postgres.

    So I ran:

    sudo /Library/PostgreSQL/9.6/uninstall-postgresql.app/Contents/MacOS/installbuilder.sh

    and somehow that got rid of my username and almost all of postgres user. I think

    I then blew away the directory

    sudo rm -rf /Library/PostgreSQL/9.6

    And then I installed using brew above.

提交回复
热议问题