pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
3+ messages / 2 participants
[nested] [flat]

* (no subject)
@ 2012-09-05 07:18 Archana K N <archanakknn@gmail.com>
  2012-09-05 08:54 ` Re: Raymond O'Donnell <rod@iol.ie>
  0 siblings, 1 reply; 3+ messages in thread

From: Archana K N @ 2012-09-05 07:18 UTC (permalink / raw)
  To: pgsql-php

Hi,

    I used the "Export" option in the phpPgAdmin for exporting certain
database and i got a zip file with .sql file inside it. I dont know how to
import it back to postgres as i dont see any option for importing. I am a
bit confused with the psql command prompt. Can anyone please help me to
import the data back.


-- 
-------------------
regards
archana
--------------------

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re:
  2012-09-05 07:18 (no subject) Archana K N <archanakknn@gmail.com>
@ 2012-09-05 08:54 ` Raymond O'Donnell <rod@iol.ie>
  2012-09-05 10:31   ` Re: Archana K N <archanakknn@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Raymond O'Donnell @ 2012-09-05 08:54 UTC (permalink / raw)
  To: Archana K N <archanakknn@gmail.com>; +Cc: pgsql-php

On 05/09/2012 08:18, Archana K N wrote:
> I used the "Export" option in the phpPgAdmin for exporting certain 
> database and i got a zip file with .sql file inside it. I dont know
> how to import it back to postgres as i dont see any option for
> importing.

You have to use the unzipped SQL file as input to psql, thus:

  psql -f my-file.sql my-database

This is assuming that the db server is running on localhost; if not, use
the -h option to specify the host.

> I am a bit confused with the psql command prompt.

The docs are the best place to start:

http://www.postgresql.org/docs/9.1/static/app-psql.html

HTH,

Ray.


-- 
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re:
  2012-09-05 07:18 (no subject) Archana K N <archanakknn@gmail.com>
  2012-09-05 08:54 ` Re: Raymond O'Donnell <rod@iol.ie>
@ 2012-09-05 10:31   ` Archana K N <archanakknn@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Archana K N @ 2012-09-05 10:31 UTC (permalink / raw)
  To: rod@iol.ie; +Cc: pgsql-php

Thanks

         It Worked!!!!!!!!!!!!!




-- 
-------------------
regards
archana
--------------------

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2012-09-05 10:31 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-09-05 07:18  Archana K N <archanakknn@gmail.com>
2012-09-05 08:54 ` Re: Raymond O'Donnell <rod@iol.ie>
2012-09-05 10:31   ` Re: Archana K N <archanakknn@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox