【发布时间】:2014-07-21 18:34:41
【问题描述】:
根据 Postgresapp.com
psql 是数据库的 PostgreSQL 命令行界面。 Mac OS 10.7 附带旧版 PostgreSQL,可以使用以下命令启动:
$ psql -h 本地主机
所以我运行psql -h localhost 并得到
Dans-MacBook-Pro:~ djechlin$ psql -h localhost
psql: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
据我所知,psql 只是客户端,而 Postgresapp.com 的文档正在讨论。我仍然不知道如何在本地启动 postgres 服务器,也找不到任何相关文档。
版本:
Dans-MacBook-Pro:~ djechlin$ psql --version
psql (PostgreSQL) 9.1.5
contains support for command-line editing
我使用的是 Mac 10.8.4。
【问题讨论】:
标签: macos postgresql postgresapp