Mr x
Mr x

Reputation: 868

PostgreSQL installation done but commands are no working

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.

enter image description here

Upvotes: 0

Views: 65

Answers (1)

Adina
Adina

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

Related Questions