postgresql-14.4-1-windows-x64-binaries在win10上的安装过程
(认知有限,如有不妥,还望告知,欢迎讨论)
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