I am using Postgres via a vagrant instance running ubuntu-xenial-16.04-cloudimg box and I have an sql dump from another developer.
By the way, I tried using PGAdmin IV from my Win 10 host machine after I had connected to the Postgres server on the virtualbox (ubuntu) but it takes forever and not running.
How can I import this to the Postgres running on virtualbox instance?
So given an sql dump file as dump.sql
.
vagrant ssh
on an ssh client like git bash(for windows)vagrant rsync
, just to make sure. cd ../../
for an ubuntu guest on a window host) psql -h hostname -U test -d databasename -f dump.sql
.