1.操作位置:迁移数据库源(旧数据库主机)

找到PostgreSql 的data目录   关闭数据库进程

打包 tar -zcvf pgdatabak.tar.gz data/

------------------------------------------------------------------

2.通过winScp 或者 CRT 等工具拷贝到    迁移目标源(新主机--需安装postgresql)  同样的data目录 关闭数据库进程

解压  tar -zxvf pgdatabak.tar.gz -C /usr/local/postgres/

重新授权 执行命令  chown -R postgres.postgres data/

相关文章:

  • 2021-08-02
  • 2021-11-12
  • 2021-11-29
  • 2021-07-15
  • 2021-04-12
  • 2022-12-23
  • 2022-02-03
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
相关资源
相似解决方案