简体   繁体   English

pg_restore: [目录归档程序] 无法打开输入文件。 尝试恢复数据库时出错

[英]pg_restore: [directory archiver] could not open input file. Error while trying to restore DB

Error when trying to restore a backup file(.nb3).尝试还原备份文件 (.nb3) 时出错。

I did a database backups in Navicat, one backup for each schema.我在 Navicat 中做了一个数据库备份,每个模式一个备份。 They are .nb3 files.它们是 .nb3 文件。 I tried to restore my DB on a local server using pgAdmin.我尝试使用 pgAdmin 在本地服务器上恢复我的数据库。 I got an error like this after choosing backup file :选择备份文件后出现这样的错误: 在此处输入图片说明

How do I restore the database on a local server?如何在本地服务器上恢复数据库?

NB3 NaviCat backup files can be restored using the NaviCat software. NB3 NaviCat 备份文件可以使用 NaviCat 软件恢复。

  1. Add the database connection in NaviCat在 NaviCat 中添加数据库连接
  2. Double click on the connection and go to Backup双击连接并转到备份
  3. Right-click on the empty backup window and select "Restore from..." from the menu右键单击空的备份窗口,然后从菜单中选择“从...还原”
  4. Select your nb3 file选择您的 nb3 文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM