Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
需要帮助在 enterprisedb 中备份数据库。pg_dumpall 命令不起作用。当我运行命令时,它说无法连接到数据库。我连接到数据库并运行命令,它没有给出任何错误,但文件没有显示在我保存它的位置。
尝试使用pg_dumpall -d dbname -f outputfile.
pg_dumpall -d dbname -f outputfile
或者,如果您的数据库位于不同的服务器中,请使用pg_dumpall -h hostname -p port -U username -d dbname -f outputfile
pg_dumpall -h hostname -p port -U username -d dbname -f outputfile