restore postgres database from dump
psql -U username -d dbname < filename.sql
restore postgres database from dump
psql -U username -d dbname < filename.sql
postgresql dump and restore db
#To dump a database called mydb into a SQL-script file:
pg_dump mydb > db.sql
#To reload such a script into a (freshly created) database named newdb:
psql -d newdb -f db.sql
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us