I have installed PostgreSQL 13 in my mac using the edb installer with all the tools as per the installation guide now when I am trying to run the command for it in terminal /Library/PostgreSQL/15/bin/psql -U postgres
I get an error stating
psql: error: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
I have referred to the documentation, tried reinstalling but unable to solve the issue.