psql: command not found Mac

后端 未结 11 822
清酒与你
清酒与你 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条回答
  •  感情败类
    2021-01-29 22:20

    Open the file .bash_profile in your Home folder. It is a hidden file.

    Add this path below to the end export PATH line in you .bash_profile file :/Applications/Postgres.app/Contents/Versions/latest/bin

    The symbol : separates the paths.

    Example:

    If the file contains: export PATH=/usr/bin:/bin:/usr/sbin:/sbin

    it will become: export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin

    How to show hidden files

    In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES

提交回复
热议问题