Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

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

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

    
@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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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