MAC 下安装 Postgres
安装
- 进入下载页面:https://www.postgresql.org/download/
- 选择 macOS:https://www.postgresql.org/download/macosx/
- 选择 Postgres.app:https://postgresapp.com/
- 选择指定版本下载,这里下载的是 PostgreSQL 11
- 下载后双击打开
- 拖动到 Applications 文件夹
- 安装成功
- 双击打开 Postgres 应用
- 点击
Initialize
即可开启 Postgres 服务
- 点击
- 默认安装目录
- /Applications/Postgres.app/Contents/Versions/latest/bin
- 默认数据文件目录
- /Users/kail/Library/Application Support/Postgres/var-11
- 默认链接方式
localhost:5432
- Database
postgres
- User:
postgres
- Password
None
- Connection URL
postgresql://localhost
卸载
删除 Postgres app
# 删除配置
$ rm -rf /Users/kail/Library/Application\ Support/Postgres
Read More
- https://postgresapp.com/
- Graphical Clients
- pgAdmin 4
- Postico
- How to connect
- Graphical Clients
Debian Linux
阮一峰 PostgreSQL新手入门