0

I have a SQL dump file: C:\Users\Rayyan\Desktop\dump_2.sql.

I have been trying to import this for so long. I am using pgadmin 4, and since I could find nothing in that GUI to help, I tried using Windows command prompt.

I created my new database "wecudos" in pgadmin4.

Then tried the following command in windows command prompt:

psql wecudos < C:\Users\Rayyan\Desktop\dump_2.sql

according to the specified format:

psql dbname < dumpfile

This is not working, please help, I have also added a screenshot of the error/data I entered, thanks!

enter image description here

Hannah Vernon
71.1k22 gold badges178 silver badges323 bronze badges
asked Nov 27, 2018 at 11:24
1
  • Do you know exactly how this dump file was created? "pg_dump", "pg_dumpall", or something else? And what options were used? Commented Nov 27, 2018 at 16:47

1 Answer 1

1

try this

C:\Program Files\PostgreSQL9円.6\bin>psql -U postgres dbname < D:\testdump.sql

or

C:\Program Files\PostgreSQL9円.4\bin>psql -U postgres dbname < D:\testdump.sql
answered Nov 27, 2018 at 11:27
1
  • I edited check now Commented Nov 27, 2018 at 11:28

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.