Importing .sql file on windows to postgresql

前端 未结 7 1633
春和景丽
春和景丽 2020-12-25 12:23

I have a .sql file that was created by postgresql a while back. I now want to import this file onto a windows machine running postgresql.

How do I do this. The file

相关标签:
7条回答
  • 2020-12-25 13:22

    click on the SQL Shell and log into the database and use import

    Server [localhost]:
    Database [postgres]:
    Port [5432]:
    Username [postgres]:
    Password for user postgres:
    psql (9.2.4)
    WARNING: Console code page (437) differs from Windows code page (1252)
             8-bit characters might not work correctly. See psql reference
             page "Notes for Windows users" for details.
    Type "help" for help.
    
    postgres=# \i c:/data/data01.sql
    
    0 讨论(0)
提交回复
热议问题