postgres make sql dump
pg_dump -U username dbname > dbexport.pgsql
postgres make sql dump
pg_dump -U username dbname > dbexport.pgsql
import sql dump into postgresql database
psql databasename < data_base_dump
restore postgresql database from dump file
pg_restore -U sam -d SamDataBase -1 SamDataBaseBackup.sql
pg dump to db
psql dbname < infile
dump sql file to database postgres
# First create DATABASE
sudo su postgres
# enter password
createdb testdb
psql db_name < dump.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