欢迎光临散文网 会员登陆 & 注册

postgresql-14.4-1-windows-x64-binaries在win10上的安装过程

2022-09-19 00:28 作者:LogByMax  | 我要投稿

(认知有限,如有不妥,还望告知,欢迎讨论)

OS: win10

postgresql版本:14.4

step1:通过网址[1]下载压缩安装包,并解压。

step2:解压后将里面的pgsql文件夹复制,并粘贴到C盘(OSDisk(C:))

step3:创建一个名为env.vbs的脚本文件,在文件里写入以下内容,并保存

step4:在pgsql文件夹下,打开power shell执行

以运行脚本。

step5:

initdb.exe -D ..\data -E UTF-8 --locale=chs -U postgres -W  

step6:

pg_ctl register -N PostgreSQL -D ..\data

step7:

pgsql\pgAdmin 4\bin下,双击pgAdmin4.exe即可打开


=END=

=reference=

[1]https://get.enterprisedb.com/postgresql/postgresql-14.4-1-windows-x64-binaries.zip

[2]https://z.itpub.net/article/detail/7CDE6583C8F293A1A0CC21DAFB5BB68A

[3]https://www.markjour.com/article/20131224-cmd-create-file.html




postgresql-14.4-1-windows-x64-binaries在win10上的安装过程的评论 (共 条)

分享到微博请遵守国家法律