Last active
August 29, 2015 14:15
-
-
Save ermolaev/9f21a87e2ef7f63bbe94 to your computer and use it in GitHub Desktop.
postgresql vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.network :forwarded_port, guest: 5432, host: 15432 | |
http://stackoverflow.com/questions/14139017/cannot-connect-to-postgres-running-on-vm-from-host-machine-using-md5-method | |
sudo -u postgres pg_dump gz > gz.dump | |
sudo -u postgres psql -h localhost -p 15432 -U postgres gz < gz.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment