简体   繁体   中英

restore sql dump into remote postgres machine

How can i dump the.sql file into remote postgres machine!

Will the pg_restore will work for it to dump sql file. Please help

Code: pg_restore -h 192.168.0.190 -p 5432 -d postgre -U postgres C:/home/mydump.sql

This worked for me

psql -h 192.168.0.190 -U postgres -p 5432 -d postgre < mydump.sql

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