I just installed postgresql9.0.3 and when I went to the bin to run psql it asked for a password....I am typing the password which I gave at the time of installation but nothing is being written on the screen...when I press enter the psql closes.

What could be the problem?

link|improve this question
@albin can u plz solve my problem – avinash Mar 12 '11 at 9:10
On which OS are you installing PostgreSQL? – Chakra Mar 12 '11 at 9:22
feedback

migrated from stackoverflow.com Mar 12 '11 at 11:38

This question came from our site for professional and enthusiast programmers.

1 Answer

The most common reason seems to be that psql will usually assume your PostgreSQL user name is the same as your login name. If it's a new installation of PostgreSQL, you probably have only one username defined, though, and that's "postgres".

psql -U postgres

You might also need the -d, -h, and -p options.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.