Answer the question
In order to leave comments, you need to log in
How to create database from sql file?
Hello. I downloaded a demo database from https://postgrespro.ru/education/demodb . But I don't know how to add it now. The zip file is sql. On one machine, I simply executed a sql query by inserting the syntax from this file. It didn't work on another computer. I am using pgAdmin.
Answer the question
In order to leave comments, you need to log in
The documentation says the following :
The files contain an SQL script that creates the demo database and fills it with data (in fact, this is a backup created by the pg_dump utility). Please note that during the installation, the existing demo database will be deleted and recreated! The demo database will be owned by the DBMS user who executed the script.
pg_dump
restores using the pg_restore
. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question