Re: Importing data in postgres from .sql file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




2012/9/5 Archana K N <archanakknn@xxxxxxxxx>

    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
>> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello
>> Twitter: http://twitter.com/fabriziomello


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux