share.png

Windows 上安装 PostgreSQL

Windows 上安装 PostgreSQL

日期:2022-07-07

本文字数:470 字 阅读完需:约 3 分钟

Windows 上安装 PostgreSQL

这里使用 EnterpriseDB 来下载安装,EnterpriseDB 是全球唯一一家提供基于 PostgreSQL 企业级产品与服务的厂商。

下载地址:https://www.enterprisedb.com/downloads/postgres-postgresql-downloads

48D4B0D8-4B9C-4C63-A533-7893AD084319.jpg

双击下载安装包,开始安装

1558508875-2553-080418-0846-HowtoDownlo5.png

你可以修改安装路径

1558508875-3906-080418-0846-HowtoDownlo6.png

选择安装组件,不懂的选就是全部勾上:

1558508875-8503-080418-0846-HowtoDownlo7.png

设置数据库路径

1558508875-9708-080418-0846-HowtoDownlo8.png

设置超级用户的密码

1558508877-1749-080418-0846-HowtoDownlo9.png

设置端口号,可以直接用默认就行

1558508878-7693-080418-0846-HowtoDownlo10.png

直接点 Next

1558508881-1703-080418-0846-HowtoDownlo11.png

点 Next

1558508882-6141-080418-0846-HowtoDownlo12.png

去掉勾选,直接点 Finish

1558508882-1701-080418-0846-HowtoDownlo13.png

打开 pgAdmin 4

1558508884-6383-080418-0846-HowtoDownlo14.png

pgAdmin 主页如下

1558508886-8320-080418-0846-HowtoDownlo15.png

点击左侧的 Servers > Postgre SQL 10

1558508887-9542-080418-0846-HowtoDownlo16.png

输入密码,点击 OK 即可

1558508890-7567-080418-0846-HowtoDownlo17.png

控制面板如下

1558508891-7409-080418-0846-HowtoDownlo18.png

打开 SQL Shell(psql)

pg-win.png