【问题标题】:Connecting to Postgres with pgAdmin使用 pgAdmin 连接到 Postgres
【发布时间】:2020-04-22 07:44:32
【问题描述】:

操作系统:macOS High Sierra
版本:10.13.6 (17G6030)

我正在阅读 Practical SQL 并尝试设置我的环境,但我遇到了以下问题。

  • 我安装了 Postgres
  • 运行 sudo mkdir -p /etc/paths.d && 回声/Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
  • 在本地安装 pgAdmin
  • 当我打开 pgAdmin 时,即使我在 postgres 中列出了 3 台服务器,也没有列出任何服务器。
  • 当我连接服务器时,我输入了服务器名称和路径。但是当我输入路径时,出现以下错误:
Unable to connect to server: could not connect to server: Not a directory
Is the server running locally and accepting connections on Unix domain socket /Applications/Postgres.app/Contents/Versions/12/bin/psql/.s.PGSQL.5432?

【问题讨论】:

  • 您需要将服务器添加到 PgAdmin,请添加您在 pgAdmin 中输入内容的屏幕截图
  • 好吧,我用这个视频想通了。 youtube.com/watch?v=lG2Nes-wi54

标签: postgresql macos


【解决方案1】:

我使用了following video to learn 如何创建数据库并将其从 postgres 连接到 pgAdmin

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-07
    • 2011-07-02
    • 1970-01-01
    • 2014-10-21
    • 2021-01-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多