SQL 如何使用 pgAdmin 恢复 postgreSQL 转储文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30555112/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 03:41:01  来源:igfitidea点击:

How restore postgreSQL dump file using pgAdmin?

sqlpostgresqlpgadmin

提问by fatCop

I've a .dmp file. Want to restore the database from it. Using pgAdmin how can I do it?

我有一个 .dmp 文件。想从中恢复数据库。使用 pgAdmin 我该怎么做?

回答by Gareth Flowers

Within PgAdmin3...

在 PgAdmin3 中...

  • Create a new database within the server you are using.
  • Right click this database and choose 'Restore'.
  • Use the 'Browser' button to select your '.dmp' file.
  • Select 'Restore' to start restoring the database.
  • 在您使用的服务器中创建一个新数据库。
  • 右键单击此数据库并选择“还原”。
  • 使用“浏览器”按钮选择“.dmp”文件。
  • 选择“恢复”开始恢复数据库。