postgresql13 for window 安装及备份还原数据

大数据138
  • 下载 win x86-64
    https://www.enterprisedb.com/download-postgresql-binaries
  • 初始化
    C:\install\postgres\pgsql\bin\initdb.exe -D C:\install\postgres\pgsql\data -E UTF8
  • 启动服务
    C:\install\postgres\pgsql\bin\pg_ctl -D C:\install\postgres\pgsql\data -l logfile.log start
  • 查看进程是否启动
    netstat -aon | findstr 5432
  • 登入
    C:\install\postgres\pgsql\bin\psql.exe postgres
  • 查看所有数据库
    \l
  • 修改连接参数及work大小

  • 打开 C:\install\postgres\pgsql\data\postgresql.auto.conf

  • 添加

```
# Do not edit this file manually!

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长