![](/img/trans.png)
[英]Authentication to host '127.0.0.1' for user 'root' using method 'mysql_native_password' failed with message: Unknown database 'xxx'
[英]How to fix the "unknown authentication response: 10" in postGIS database through using docker
我嘗試使用 windows 中的kartoza/postgis dockerhub 將.osm.pbf
文件導入 PostGIS 數據庫。 但我正面臨錯誤
opening database: opening db: ping Postgres DB: pq: unknown authentication response: 10
但是當我使用docker exec
命令時,相同的憑據正在工作:
docker exec -it postgis psql postgres://docker:docker@172.17.0.2/gis
這是我的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
}
這是我要運行的 shell 腳本
imposm import -config app/config.json -read pbf-example/andorra-latest.osm.pbf -write -optimize
請建議我如何解決這個問題。
您必須在客戶端升級 PostgreSQL 驅動程序或庫,以便它支持 PostgreSQL v10 中引入的scram-sha-256
身份驗證方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.