PostgresSQL / pgAdmin4 /转储服务器版本不匹配 [英] PostgresSQL / pgAdmin4 / dump server version mismatch
问题描述
我试图在pgAdmin4中使用Postgres 11.1进行备份,但是失败了。
pgadmin显示一个带有
I tried to make a backup with Postgres 11.1 in pgAdmin4, but it failed. pgadmin displayed a window with
状态:失败(退出代码:1)的窗口。
Status: Failed (exit code: 1).
pg_dump:服务器版本:11.1; pg_dump:10.5
pg_dump:server version: 11.1; pg_dump: 10.5
pg_dump:由于服务器不匹配而中止
pg_dump: aborting because of server mismatch
不太了解。 pgadmin4不知道我使用的是11.1而不是10.5吗?
I don't really understand it. Does pgadmin4 not know that I am using 11.1 and not 10.5?
问题已解决-在我的情况下。
转到
pgadmin<偏好<路径<二进制路径
pgadmin < Preferences < Path < Binary Path
PostgreSQL二进制路径自动设置为 $ DIR /../ runtime
The PostgreSQL Binary Path was set automatically to $DIR/../runtime
我将路径更改为已安装的PostgreSQL版本 C:\Program Files\PostgreSQL\11\bin
I changed the Path to my installed PostgreSQL Version C:\Program Files\PostgreSQL\11\bin
推荐答案
您的pgAdmin使用的是PostgresSQL客户端v10,但您的服务器是v11。
Your pgAdmin is using PostgresSQL client v10, but your server is v11.
由于v10无法知道如何正确转储v11数据库,因此它拒绝尝试。
Since v10 cannot know how to correctly dump a v11 database, it refuses to try.
使用最新版本的pgAdmin!
Use a more recent version of pgAdmin!
这篇关于PostgresSQL / pgAdmin4 /转储服务器版本不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!