I'm creating table in PostgreSQL using these commands:

 shp2pgsql -s 32632 watershed.shp watershed > watershed.sql 
 psql -f watershed.sql cambridge
 psql -f watershed.sql cambridge

But I had this FATAL

password authentication failed for user "ASUS"

How to resolve this?

enter image description here


To use another user, add the parameters

-U myusername -W

-U specifies a username, -W will prompt for the password

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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