简体   繁体   中英

postgres, restore database from commandline

Trying to import a database.

Followed this documentation Restore: $ psql -U {user-name} -d {desintation_db}-f {dumpfilename.sql}

http://www.thegeekstuff.com/2009/01/how-to-backup-and-restore-postgres-database-using-pg_dump-and-psql/

在此输入图像描述

What am I doing wrong?

您应该从shell运行psql ,而不是从psql实例运行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM