在windows上导入.sql文件到postgresql [英] Importing .sql file on windows to postgresql
本文介绍了在windows上导入.sql文件到postgresql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个postgresql创建的.sql文件。我现在想要将这个文件导入到运行postgresql的windows机器上。
I have a .sql file that was created by postgresql a while back. I now want to import this file onto a windows machine running postgresql.
我该怎么做。该文件大约1.5gb。
How do I do this. The file is about 1.5gb.
推荐答案
你应该使用 psql 命令行工具:
You should use psql command line tool:
psql -h hostname -p port_number -U username -f your_file.sql databasename
这篇关于在windows上导入.sql文件到postgresql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文