executing pg_dump?
good day to all.
anyone knows how to dump a data from PostgresQL server to my local computer? i read the pg_dump --help and executing this command: pg_dump -h 127.10.0.102 -U postgres mydata but then i dont know where the mydata database goes. coz i tried this command: postgres@Trinity:~$ psql mydata and gives me error: Code:
psql: FATAL: Database "mydata" does not exist in the system catalog. thanks in advance. |
Well ... I'm not quite sure about what you're trying to
achieve ... pg_dump is a backup utility for postgres databases. It appears that there's no database by the name of mydata on your machine. Cheers, Tink |
Quote:
|
http://www.postgresql.org/docs/7.3/static/backup.html
Do you want to backup the data to a file or copy the database to your local PC postgres server? |
Quote:
i want to copy the database to my local PC postgres server.. i have see how to do it now, by issuing the command: Code:
psql -U vvbuen -f polmap_akbayan.sql polmap_akbayan Code:
NOTICE: CREATE TABLE will create implicit sequence 'cc_encodersee_cocv_id_seq' for SERIAL column 'cc_encodersee_2003_cocv_id_seq.cc_encodersee_id' this are some line content of my sql script: Code:
-- TOC entry 303 OID (4720023) Hoping again someone could give me a helping hand... thanks in advance. |
|
Quote:
it doesn't have any options for remote connections. Log into the other box, run pg_dump and then scp the result back to your box. Cheers, Tink |
All times are GMT -5. The time now is 12:23 PM. |