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
Help with Writing a SQL Query for Nested Sets
How to Insert into Two Tables All at Once in a Stored Procedure
How to Select All Hours Between Two Dates
Find Start and Stop Date for Contiguous Dates in Multiple Rows
Tree Structure in SQL in Oracle.How to Show Tree,Child Nodes and Parent Nodes in SQL Oracle
Bigquery: How to Group and Count Rows Within Rolling Timestamp Window
Using with Nolock Table Hint in Query Using View - Does It Propagate Within the View
Change Datatype Varchar to Nvarchar in Existing SQL Server 2005 Database. Any Issues
How to Find SQL Language Specification
Can SQL Profiler Display Return Result Sets Alongside the Query
How to Create SQL Synonym or "Alias" for Database Name
How to Restore SQL Server 2008 Backup in SQL Server 2005
Java.Sql.Sqlexception: Ora-03115: Unsupported Network Datatype or Representation
Pass Extra Parameter to Postgresql Aggregate Final Function
Create Unqiue Case-Insensitive Constraint on Two Varchar Fields
Postgres Syntax Error at or Near "On"
SQL Server Default Date Time Stamp
How to Insert into a Table That Specifies a Default Value for Every Column