[英]How to fix the "unknown authentication response: 10" in postGIS database through using docker
I tried to import an .osm.pbf
file into a PostGIS database by using the kartoza/postgis dockerhub in windows.我尝试使用 windows 中的kartoza/postgis dockerhub 将.osm.pbf
文件导入 PostGIS 数据库。 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
命令时,相同的凭据正在工作:
docker exec -it postgis psql postgres://docker:docker@172.17.0.2/gis
Here is my config.json
file and located in app
directory这是我的config.json
文件,位于app
目录中
{
"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这是我要运行的 shell 脚本
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
身份验证方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.