Re: Importing data in postgres from .sql file

Поиск
Список
Период
Сортировка
От Fabrízio de Royes Mello
Тема Re: Importing data in postgres from .sql file
Дата
Msg-id CAFcNs+obYoM0WPGb=BohPG3RHVHoyqWsb9MkVxUHN6v=PcTUCQ@mail.gmail.com
обсуждение исходный текст
Ответ на Importing data in postgres from .sql file  (Archana K N <archanakknn@gmail.com>)
Список pgsql-php

2012/9/5 Archana K N <archanakknn@gmail.com>

    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.
    

Hi,

You can use the psql command line:

$ unzip -c name_of_your_file.zip | psql -U postgres name_of_your_database
 
Regards,

-- 
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
>> Blog sobre TI: http://fabriziomello.blogspot.com

В списке pgsql-php по дате отправления:

Предыдущее
От: Archana K N
Дата:
Сообщение: Re:
Следующее
От: hatem@softpro.bz
Дата:
Сообщение: imprtant please read and deliver to who may concern (updated copy)