【发布时间】: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