【求助】backup备份导入windows 系统下的postgresql
postgresql吧
全部回复
仅看楼主
level 1
唏嘘_退场 楼主
现在有份backup备份。想导入winddows 下postgresql数据库
但是按钮是pgAdmin 恢复按钮为灰色,
问 backup导出的环境字符设置必须和导入的字符设置一样?
或者给个windows下导入的 docs 命令。
2015年04月25日 06点04分 1
level 1
唏嘘_退场 楼主
自己已经搞定。
附步骤。
1、 pgAdmin 备份设置 其余不用管只配置这个页
2、 恢复,选择要被恢复的数据库,选择恢复导入备份包,设置角色,。点击恢复
恢复要在pgAdmin 或 sql 创建对应数据库
二、dos命令备份恢复
F:\Program Files (x86)\PostgreSQL\9.3\bin下
1、本地备份
pg_restore.exe --host localhost --port 5434 --username"postgres" --dbname "ifp" --role "postgres"--no-password --verbose"C:\Users\admin\Desktop\ifpbak.backup"
2、远程数据库恢复
C:\Program Files (x86)\pgAdmin III\1.16\pg_dump.exe --host 192.168.1.10 --port 8000 --username "postgres" --role"postgres" --no-password --format tar --blobs --verbose --file"C:\Users\admin\Desktop\ifpbak3.backup" "ifp"
3、本地数据库恢复
C:\Program Files (x86)\pgAdmin III\1.16\pg_dump.exe --hostlocalhost --port 5434 --username "postgres" --role"postgres" --no-password --format tar --blobs --verbose --file"C:\Users\admin\Desktop\ifpbak4.backup" "ifp"
2015年04月25日 08点04分 2
level 2
天渊~来帮我撒~那叶呢?我们的水军铁三角的真正实力在哪呢?
2015年09月11日 08点09分 3
level 1
怎么搞成功的,现在正在迷茫中,恢复不了,导入不进去
2015年10月01日 15点10分 4
1