先连接postgresql数据库 之后在控制台执行该行命令: psql -d test -U postgres -f scyfxt20200722021101.sql 备注: 斜体部分为sql备份文件test为数据库名称