postgresql安装详细教程
一.pgsql下载地址
https://www.postgresql.org/
EDB: Open-Source, Enterprise Postgres Database Management (enterprisedb.com)
点击:pgsql官网
1.点击downlond
2.选择windons
3.点击Download the installer (红色字体)
4.选择Windowns X86-64 版本12.20 下载下来
二.安装pgsql
1.双击下载的文件 点击next
2.选择安装路径 一直点击next到3步骤
3.设置数据库管理员密码,如123456
自己记住就行,一路点击next
4.finish完成后,再出现窗口关闭就行,到此安装完毕。
5、打开pgAdmin 4
-
点击左侧的 Servers > Postgre SQL 12:
-
输入密码,点击 OK 即可:
-
控制面板如下
-
-
打开 SQL Shell(psql)
-
-
可以连接navicat
-
-
-
使用
- idea连接
-
application.yml文件
server: port: 8080 datasource: driverClassName: org.postgresql.Driver url: jdbc:postgresql://localhost:5432/postgres?stringtype=unspecified&allowMultiQueries=true username: postgres password: 123456 initialSize: 5 minIdle: 5 maxActive: 50 #mybatis mybatis: type-aliases-package: com.example.core.**.model mapper-locations: classpath*:mapper/*.xml