Created
February 24, 2020 08:06
-
-
Save thephucit/8620f862a7a2b38ff13d3debde4fc8bc to your computer and use it in GitHub Desktop.
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
| # export postgres db | |
| pg_dump -p [post] -U [username] -h [host] -d [db_name] > dbexport.pgsql | |
| # import postgres db | |
| psql -p [post] -U [username] -h localhost [dbname] < dbexport.pgsql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment