postgresql下载、安装、使用

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值