I tried to import an .osm.pbf
file into a PostGIS database by using the kartoza/postgis dockerhub in windows. But I'm facing the error
opening database: opening db: ping Postgres DB: pq: unknown authentication response: 10
But the same credentials are working when I use the docker exec
command:
docker exec -it postgis psql postgres://docker:docker@172.17.0.2/gis
Here is my config.json
file and located in app
directory
{
"cachedir": "./imposm_cache",
"diffdir": "./imposm_dif",
"connection": "postgres://docker:docker@172.17.0.1:5432/gis",
"mapping": "app/mapping.yml",
"srid": 4326
}
Here is my shell script to run
imposm import -config app/config.json -read pbf-example/andorra-latest.osm.pbf -write -optimize
Please suggest to me how can I resolve this.
您必须在客户端升级 PostgreSQL 驱动程序或库,以便它支持 PostgreSQL v10 中引入的scram-sha-256
身份验证方法。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.