本文介绍了在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
发布评论