代码之家  ›  专栏  ›  技术社区  ›  Thomas Landauer dbNine

pgAdmin 4 1.0-rc1中的PostgreSQL二进制路径

  •  10
  • Thomas Landauer dbNine  · 技术社区  · 9 年前

    现场需要做什么 PostgreSQL Binary Path 在下面 File > Preferences > Path > Binary paths ?

    6 回复  |  直到 9 年前
        1
  •  20
  •   Umar Yusuf    9 年前

    使用pgAdmin 4上运行的最新版本的PostgreSQL 9.6,在用适当的版本号替换$version$后,您将在“帮助”选项卡下找到这两个URL的提示: https://www.enterprisedb.com/docs/en/9.6/pg/ https://www.postgresql.org/docs/9.6/static/ (然而,这些链接实际上并没有提供太多帮助)。

    enter image description here

    enter image description here

    在windows上,默认安装类似于: C: \程序文件\PostgreSQL\9.6\bin

    enter image description here

        2
  •  9
  •   Thomas Landauer dbNine    9 年前

    这需要一个 目录 ,不是单个文件。所以在Windows上,通常 C:\Program Files\PostgreSQL\9.6\bin

    在pgAdmin 4的未来版本中,将有以下提示:

    Path to the directory containing the PostgreSQL utility programs (pg_dump, pg_restore etc).

        3
  •  6
  •   user5683940 user5683940    7 年前

    因此,您需要做的是配置路径(显然):

    1. 在里面 pgAdmin 选择 File -> Preferences 并寻找 Path 然后单击 Binary Path 它需要你的路径 PostgreSQL Binary Path

    2. 转到您的计算机-> C: (在windows上)-> Program Files -> PostgreSQL -> your version -> bin C:\Program Files\PostgreSQL\9.6\bin 这就是您需要复制并粘贴到pgAdmin的内容。

    3. 希望能有所帮助

        4
  •  0
  •   Akalanka    7 年前

    所有与postgresql相关的二进制文件都应该在那里。这应该指向postgre安装下的“bin”文件夹。

        5
  •  0
  •   no ai please tput-guest    4 年前

    如果使用CentOS7将/usr/bin放在二进制路径中,但不起作用:

    而且…如果您正在升级pgadmin3,请先卸载它,并注意忽略libpq5。。。

    sudo yum remove pgadmin3
    
    sudo yum -y install pgadmin4 -x libpq5*
    
    sudo yum -y install https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    

    …因此,它可能安装得很好,但您需要进行备份,可能需要执行一些额外的步骤来配置二进制路径,因此您需要在下面执行此操作:

    sudo yum install rh-postgresql13-postgresql-syspaths-13.3-1.el7.x86_64
    

    如果您在使用postgresql96-9.6.23-1PGDG.rhel7.x86_64或类似命令时遇到confict错误,请使用它:

    $ rpm -Va --nofiles --nodigest
    
    $ sudo yum remove postgresql
    
    $ sudo yum install rh-postgresql13-postgresql-syspaths-13.3-1.el7.x86_64
    

    因此,在此之后,您可以使用“pgdump”

    $ which psql
    
    $ which pg_dump
    

    因此,现在您可以使用/usr/bin配置二进制路径,它最终将工作。。。

        6
  •  0
  •   Rivet174    4 年前

    windows上Postgres 14的默认目录是: C: \程序文件\PostgreSQL\14\bin Image of pgAdmin File -> Preferences -> Binary Path 我不能在路径上剪切和粘贴。我需要导航到目录。