我正在try 备份postgresql的数据库,我想使用pg_dump
命令
psql -U postgres
postgres-# pg_dump test > backup.sql
但我不知道输出文件在哪里
我正在try 备份postgresql的数据库,我想使用pg_dump
命令
psql -U postgres
postgres-# pg_dump test > backup.sql
但我不知道输出文件在哪里
转到命令提示符和目录postgresql\9.3\bin.
Example个
.
..
c:\Program files\postgresql\9.3\bin> pg_dump -h localhost -p 5432 -U postgres test > D:\backup.sql
...
After above command enter User "postgres" password and check D:\
drive for backup.sql
file