postgresql 导入sql,out等sql文件

 假设postgresql安装位置

 

 然后,使用dos窗口
进入这个位置

 

 

导入(本地和默认端口可以不用属性)

psql -d 数据库名 -h ip地址 -p 数据库端口 -U 用户名 -f 文件地址

 

 

 

 完成

 

posted @ 2016-08-11 15:29  243573295  阅读(7051)  评论(0编辑  收藏  举报