简体   繁体   English

服务器版本不匹配PostgreSQL pg_dump

[英]server version mismatch postgresql pg_dump

I'm getting the following error when I'm trying to export my database... 尝试导出数据库时出现以下错误...

pg_dump: server version: 9.3.1; pg_dump version: 9.1.11
pg_dump: aborting because of server version mismatch

The problem is I cannot update from 9.1.11 to 9.3.1 because of my ubuntu version on my client machine. 问题是由于客户端计算机上的ubuntu版本,我无法从9.1.11更新到9.3.1。 I'm running Ubuntu 13.04 raring ringtail and as you can see in this distributions link the ultimate postgresql version for ubuntu is 12.04 precise pangolin. 我正在运行Ubuntu 13.04 raring ringtail,正如您在此发行版链接中所看到的那样,ubuntu的最终postgresql版本是12.04精确穿山甲。

Any possible solution? 任何可能的解决方案? Thanks in advance! 提前致谢!

As previously commented the solution is to use a pg_dump compatible with the server version. 如前所述,解决方案是使用与服务器版本兼容的pg_dump The alternatives are: 替代方法是:

  1. Run pg_dump from the server. 从服务器运行pg_dump This means you have to have a local or remote connection to server (via ssh for example) 这意味着您必须与服务器建立本地或远程连接(例如,通过ssh)
  2. Install later version of pg_dump . 安装更高版本的pg_dump Note that even pgAdmin includes pg_dump so you don't necessarily have to install PostgreSQL package on the client. 请注意,即使pgAdmin也包含pg_dump因此您不必在客户端上安装PostgreSQL软件包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM