如何在 Windows 中安装 PostgreSQL?

2025-10-29 01:36:46

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?

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢