Created
January 12, 2022 10:44
-
-
Save renkin/a2b3658ebd82a96a5f727bedf0b38b91 to your computer and use it in GitHub Desktop.
Import PostgreSQL Dump in Windows
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
# Via pgAdmin Docker Container | |
docker run -e [email protected] -e PGADMIN_DEFAULT_PASSWORD=1234 -d dpage/pgadmin4 | |
MSYS_NO_PATHCONV=1 docker exec -i priceless_euclid /usr/local/pgsql-14/pg_restore -h host.docker.internal -U postgres -v -d $DATABASE_NAME < $PATH_TO_DUMP_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment