如何在 Windows 中安装 PostgreSQL?

 时间:2026-02-16 10:01:19

PostgreSQL是一个功能强大的开源对象关系数据库系统,经过35年的积极开发,在可靠性、功能健壮性和性能方面赢得了良好的声誉,我们可以通过以下步骤在 Windows 中安装​它:

一、安装 PostgreSQL

1、双击安装包,开始安装

如何在 Windows 中安装 PostgreSQL?

2、单击“ Next (下一步)”

如何在 Windows 中安装 PostgreSQL?

3、选择安装目录(Installation Directory)

如何在 Windows 中安装 PostgreSQL?

4、选择要安装的组件(Select Components),然后点击”Next (下一步)“

如何在 Windows 中安装 PostgreSQL?

5、选择数据目录(Data Directory),然后点击”Next (下一步)“

如何在 Windows 中安装 PostgreSQL?

6、为超级用户 postgres 设置密码,然后点击”Next(下一步)“

如何在 Windows 中安装 PostgreSQL?

7、设置端口号(Port)(默认即可)

如何在 Windows 中安装 PostgreSQL?

8、设置语言环境(Locale)(默认即可),然后点击“Next (下一步)”

如何在 Windows 中安装 PostgreSQL?

9、安装预览(Pre Installation Summary),然后点击“Next(下一步)”

如何在 Windows 中安装 PostgreSQL?

10、点击“Next(下一步)”

如何在 Windows 中安装 PostgreSQL?

11、安装进度(Installing)

如何在 Windows 中安装 PostgreSQL?

12、安装完成,点击“Finish(完成)”

如何在 Windows 中安装 PostgreSQL?

二、运行 PostgreSQL

1、在搜索栏中输入 pgadmin,打开 pgAdmin 4

如何在 Windows 中安装 PostgreSQL?

2、设置 master 密码,然后点击“OK”

如何在 Windows 中安装 PostgreSQL?

3、在左边窗口中的 Server 找到 PostgreSQL 并双击

如何在 Windows 中安装 PostgreSQL?

4、输入安装时为超级用户 postgres 设置的密码,然后点击“OK”

如何在 Windows 中安装 PostgreSQL?

5、连接成功

如何在 Windows 中安装 PostgreSQL?

  • Eclipse怎么提交代码到SVN服务器
  • 如何使用SQL Developer导出表数据到sql文件
  • 易语言零基础教程:[6]下拉式菜单设计
  • eclipse启动不了,出现“Java was...”如何解决
  • linux怎么查看IP地址
  • 热门搜索
    哈尔滨理工大学怎么样 小孩牙齿有洞怎么办 华侨博物馆 延时摄影怎么拍 惊愕的近义词 蜗蜗洗发水怎么样 光滑的近义词是什么 知道的近义词 警察博物馆 富贵竹叶子黄了怎么办