postgres从dump文件恢复数据库 - xd21303/Notebook GitHub Wiki
psql database_name < *.dump
psql -h 127.0.0.1 -p 5432 -U postgres -d postgres < *.dump
- -h --host=HOSTNAME
- -p --port=PORT
- -U --username=USERNAME
- -d --dbname=DBNAME
- -W --password
psql database_name < *.dump
psql -h 127.0.0.1 -p 5432 -U postgres -d postgres < *.dump