Import SQL dump into PostgreSQL database

前端 未结 15 1766
我寻月下人不归
我寻月下人不归 2020-12-04 04:23

We are switching hosts and the old one provided a SQL dump of the PostgreSQL database of our site.

Now, I\'m trying to set this up on a local WAMP server to test thi

15条回答
  •  借酒劲吻你
    2020-12-04 05:00

    psql databasename < data_base_dump
    

    That's the command you are looking for.

    Beware: databasename must be created before importing. Have a look at the PostgreSQL Docs Chapter 23. Backup and Restore.

提交回复
热议问题