Windows 10下安装PostgreSQL 14

下载地址: https://www.postgresql.org/download/windows/

285M左右,下载后安装在D盘,安装到最后时,出现以下提示:

百度了一下,尝试修改locale为中国香港还是有问题,点击安装文件右键选择使用管理员执行也不行,后面卸载掉,重新正常双击安装,database locale选了开头的C选项后,意外可以了。

Maven依赖:

<dependency>
   <groupId>org.postgresql</groupId>
   <artifactId>postgresql</artifactId>
</dependency>

驱动类名: org.postgresql.Driver

连接URL示例: jdbc:postgresql://localhost:5432/postgres

官网14版本文档: https://www.postgresql.org/docs/14/index.html

Comments are closed