如何将northwind数据库的sql文件导入PostgreSQL?

编程入门 行业动态 更新时间:2024-10-25 20:30:36
本文介绍了如何将northwind数据库的sql文件导入PostgreSQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用最新版本的PostgreSQL和Pg​​admin 4. 我正在尝试从git导入这个数据库: github/pthom/northwind_psql

I am using the most recent version of PostgreSQL, and Pgadmin 4. And I am attempting to import this database from git: github/pthom/northwind_psql

我试图将sql文件作为恢复加载,并收到此消息错误:

I attempted to load the sql file as a restore, and recieved this error:

推荐答案

此文件不适用于pg_restore。您应该只在psql上执行它。

This file is not intended for a pg_restore. You should to just execute it on psql.

pg_restore是一个实用程序,用于从pg_dump在其中一个存档中创建的存档中恢复PostgreSQL数据库。非纯文本格式。

pg_restore is a utility for restoring a PostgreSQL database from an archive created by pg_dump in one of the non-plain-text formats.

在GitHub上查看 create_db shell脚本,了解如何导入它。

Take a look to create_db on GitHub shell script to understand how to import it.

更多推荐

如何将northwind数据库的sql文件导入PostgreSQL?

本文发布于:2023-10-23 18:54:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1521716.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   数据库   文件   PostgreSQL   northwind

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!