2017-08-24 46 views
0

的PostgreSQL 9.4本小抄http://www.postgresonline.com/special_feature.php?sf_name=postgresql90_pg_dumprestore_cheatsheet&outputformat=html试图备份PostgreSQL的pg_dumpall密码错误

enter image description here

这里以下是我的命令

C:\Program Files\PostgreSQL\9.4\bin>pg_dumpall -h arcserver -U postgres -w -p 5433 -f "R:\Data\LUCZ_2017\PostgreSQL_Backup\lucz.sql" 

然后它给了我这个奇怪的错误

pg_dumpall: could not connect to database "template1": fe_sendauth: no password supplied 

什么是template1?正如你在图片中看到的那样,没有template1?

我放在-w所以它不问我的密码..

我究竟做错了什么?

+0

为什么你认为你没有一个模板1分贝? psql -l显示了什么? –

+0

对不起还在习惯DB。是的,当我运行psql \ l但它为什么不显示在pgadmin中? – ziggy

+0

但是当密码提示出现时,它不会让我输入任何内容...? – ziggy

回答