Unable to restore a PostgreSQL database from a .backup file
-
06-02-2021 - |
Question
I am using Ubuntu 18.04 and PostgreSQL. For the GUI, i am using pgadmin4 (browser version). I created a new database and when trying to restore, the following error message comes up:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>400 Bad Request</title> <h1>Bad Request</h1> <p>The CSRF token is missing.</p>
I Tried using the terminal way using this tutorial but it does'nt seem to work.
Here is the screenshot of the problem:
Solution
An alternartive is using pg_restore command
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange