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.