0
点赞
收藏
分享

微信扫一扫

postgis中将数据库备份到其它数据库中还原


1、备份数据库

postgis中将数据库备份到其它数据库中还原_python

postgis中将数据库备份到其它数据库中还原_jar_02


可以用命令操作

pg_dump -U postgres -h hostip -d joint-boot -Fc > "D:\\python\\Project\\PG\\data\\joint.jar"

2、创建新的数据库

可以在其它postgis数据库中创建

postgis中将数据库备份到其它数据库中还原_python_03

3、还原数据库

postgis中将数据库备份到其它数据库中还原_jar_04


postgis中将数据库备份到其它数据库中还原_jar_05

可以用命令操作

pg_restore -U postgres -h hostip -d C -Fc -C "D:\\python\\Project\\PG\\data\\joint.jar"


举报

相关推荐

0 条评论