psql: command not found Mac

后端 未结 11 917
清酒与你
清酒与你 2021-01-29 22:16

I installed PostgreSQL via the graphical install on http://www.postgresql.org/download/macosx/

I see it in my applications and also have the psql terminal in my applicat

11条回答
  •  旧时难觅i
    2021-01-29 22:31

    You have got the PATH slightly wrong. You need the PATH to "the containing directory", not the actual executable itself.

    Your PATH should be set like this:

    export PATH=/Library/PostgreSQL/9.5/bin:$PATH
    

    without the extra sql part in it. Also, you must remove the spaces around the equals sign.

    Keywords: Postgresql, PATH, macOS, OSX, psql

提交回复
热议问题