0

I got this error while importing an osm file to PostgreSQL directly.

My code is:

osm2pgsql –c –d highway -U postgres –P postgres –W postgres -H localhost  "D:\data\highway.osm"

The result shows:

ERROR: Connecting to database failed (context=check): connection to server at "localhost" (::1), port 5432 failed: fe_sendauth: no password supplied

enter image description here

Do I need a style file to fix this error?

2
  • 1
    Port number "postgres" is certainly invalid. By default it is 5432. Follow the documentation osm2pgsql.org/doc/manual.html#running-osm2pgsql.
    – user30184
    Commented Jun 16 at 17:53
  • Thank user30184. I updated it but I got a new error. Password: osm2pgsql version 1.11.0 ERROR: Connecting to database failed (context=check): connection to server at "localhost" (::1), port 5432 failed: fe_sendauth: no password supplied Commented Jun 23 at 10:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.