Reputation: 868
I have installed PostgreSQL on my CentOS 6.5
I have installed the same with http://www.enterprisedb.com/products-services-training/pgdownload
Now Postgres is running on 5432 that I have checked with
netstat -ant|grep 5432
but when I run a command like postgres
or psql
I am getting error that
command not found
Please find attached image of the same.
Upvotes: 0
Views: 65
Reputation: 78
Are you sure you want to be doing this as the root user and not as the postgres user?
If you login as the postgres user you'll have the right path and "psql" will connect as the postgres user.
Alternatively, you could say "psql -U postgres" and then when you're prompted for a password, the one that you selected at install time should work.
Upvotes: 1