How to import a schema sql file using pgadmin 4?

Chris Stryczynski picture Chris Stryczynski · Jul 28, 2018 · Viewed 24.2k times · Source

Is it possible? If so how?

I can only find solution for pgadmin 3 which does not work for me.

Answer

SwissCodeMen picture SwissCodeMen · Jun 3, 2020

It worked like this for me:

  1. Go to your Database and click on this.
  2. Click in the menubar on Tools, Query Tools

enter image description here

  1. Then it reload the page. Above the menubar on the left, you see the folder-icon (look picture below). Click on them and choose your .sql file
  2. Click on select and the file is uploaded
  3. To execute the .sql file, press F5 or the play button above the menubar in the middle (look at the screenshot below).

enter image description here