The Local Psql Command Could Not Be Located

psql: command not found Mac

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

CLI isn't recognizing psql command

Have you tried this suggested solutions?

The local psql command could not be located

The problem was a difference between the version of postgres on heroku compared to the local version. Try running heroku pg:info and compare it to postgres --version

Postgresql Error in psql command not found in zsh mac

/Users/Library/PostgreSQL/13/bin is not in your "path"

Easy solution would be to create a symbolic link for psql in /usr/local/bin/:

ln -s /Users/Library/PostgreSQL/13/bin/psql /usr/local/bin/psql

Otherwise you can edit your profile file and extend your path to /Users/Library/PostgreSQL/13/bin



Related Topics



Leave a reply



Submit