简体   繁体   English

如何使用pgadmin创建pg_dump

[英]How to create pg_dump using pgadmin

I have pgAdmin III ver 9.4 and I'm trying to create pg_dump using SQL Shell (psql) but does not seems to work, is there away you can create dump using pgAdmin ? 我有pgAdmin III ver 9.4,我正在尝试使用SQL Shell(psql)创建pg_dump,但似乎不起作用,是否可以使用pgAdmin创建转储?

this is what I have done so far using SQL Shell 1) fire up the Shell 2) Server [localhost] - after hit enter I see 3) Database [postgres] - type > pg_dump test_db | gzip > test_db_backup.gz 这是我到目前为止使用SQL Shell所做的工作1)启动Shell 2)服务器[localhost]-按下Enter后,我看到3)数据库[​​postgres]-类型> pg_dump test_db | gzip > test_db_backup.gz pg_dump test_db | gzip > test_db_backup.gz 4) next I see nothing nothing no response pg_dump test_db | gzip > test_db_backup.gz 4)接下来,我什么也没看到,没有任何响应

I shown in the screen shot 我在屏幕快照中显示 在此处输入图片说明

pg_dump is a compiled utility program. pg_dump是一个编译的实用程序。 Exit the psql shell, and run pg_dump from a bash (or whatever) shell prompt. 退出psql shell,然后从bash(或任何其他)shell提示符运行pg_dump。

Use the Backup option available when you right click the database. 右键单击数据库时,请使用可用的“备份”选项。 Select 'Plain" format if you just want the SQL commands in text format. 如果只需要文本格式的SQL命令,请选择“普通”格式。

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

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