欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Windows 2019下安装PostgreSQL11.4

程序员文章站 2024-03-24 08:59:10
...

从Windows 2019的“卸载或更改程序”中,可以看到安装的Visual C++版本:

Windows 2019下安装PostgreSQL11.4

------如下取自Windows 2019的事件查看器-应用程序部分---------------
Product: Microsoft Visual C++ 2017 X64 Additional Runtime - 14.16.27024 -- Installation completed successfully.

Product: Microsoft Visual C++ 2017 X64 Minimum Runtime - 14.16.27024 -- Installation completed successfully.

Product: Microsoft Visual C++ 2017 X86 Additional Runtime - 14.16.27024 -- Installation completed successfully.

Product: Microsoft Visual C++ 2017 X86 Minimum Runtime - 14.16.27024 -- Installation completed successfully.
------如上取自Windows 2019的事件查看器-应用程序部分---------------

Microsoft Windows [版本 10.0.17763.379]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>e:

E:\>cd E:\Program Files\PostgreSQL\11\bin

E:\Program Files\PostgreSQL\11\bin>psql
用户 Administrator 的口令:
psql: 致命错误:  用户 "Administrator" Password 认证失败

E:\Program Files\PostgreSQL\11\bin>psql -U postgres
用户 postgres 的口令:
psql (11.4)
输入 "help" 来获取帮助信息.

postgres=# select version();
                          version
------------------------------------------------------------
 PostgreSQL 11.4, compiled by Visual C++ build 1914, 64-bit
(1 行记录)


postgres=# \q

E:\Program Files\PostgreSQL\11\bin>wmic os get Caption


Caption=Microsoft Windows Server 2019 Standard


E:\Program Files\PostgreSQL\11\bin>