Mac OS -bash: psql: command not found error using the psql command

Use psql on mac os system login, the system displays the command does not exist psql

 

 

Solutions are as follows:

Add the bin directory to postgresql environment variable can be

export PATH="/Applications/Postgres.app/Contents/Versions/9.5/bin:$PATH"

 

Reference links:

https://stackoverflow.com/questions/20928734/how-to-put-psql-on-the-path-when-using-postgres-app-on-os-x?rq=1

Guess you like

Origin www.cnblogs.com/ryanzheng/p/11229400.html
Recommended