If you want to restore your postgres database from a dump. first cd into the directory where your dump file exist.
Then run the following command in your console.
$ psql -U mypostgresusername -d mydestinationdbname -f mydbdumpfilename.sql
Then run the following command in your console.
$ psql -U mypostgresusername -d mydestinationdbname -f mydbdumpfilename.sql
No comments:
Post a Comment