PostgresSQL / pgAdmin4 / dump server version mismatch

99封情书 提交于 2019-12-07 06:40:28

问题


I tried to make a backup with Postgres 11.1 in pgAdmin4, but it failed. pgadmin displayed a window with

Status: Failed (exit code: 1).

pg_dump:server version: 11.1; pg_dump: 10.5

pg_dump: aborting because of server mismatch

I don't really understand it. Does pgadmin4 not know that I am using 11.1 and not 10.5?

PROBLEM SOLVED - IN MY CASE.

Go to

pgadmin < Preferences < Path < Binary Path

The PostgreSQL Binary Path was set automatically to $DIR/../runtime

I changed the Path to my installed PostgreSQL Version C:\Program Files\PostgreSQL\11\bin


回答1:


Your pgAdmin is using PostgresSQL client v10, but your server is v11.

Since v10 cannot know how to correctly dump a v11 database, it refuses to try.

Use a more recent version of pgAdmin!



来源:https://stackoverflow.com/questions/53659113/postgressql-pgadmin4-dump-server-version-mismatch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!