简体   繁体   中英

Import dump file containing a database dump to dbeaver

I have a database dump in this db_2022.dump binary file that I'm trying to import to dbeaver, but I haven't found a way to import the database so I can see it.

I found the below in the dbeaver forum but when I try to follow the instructions and create a new connection I don't see any option I can select that will open this document.

https://dbeaver.io/forum/viewtopic.php?f=2&t=895

Edit: The database and version is PostgreSQL 12. I'm not trying to dump it to an existing db rather I want to create a new one with this dump. the dump command looks like this: pg_dump -h blah.amazonaws.com -Fc -v --dbname="blah2" -f "/tmp/dump/20220203.dump". And it will be the same version PostgreSQL 12

The easiest way to not use DBeaver at all.

Do:

--In psql
CREATE new_db;
--Exit psql
--At command line
pg_restore -d new_db -h <the_host> -p <the_port> -U postgres /tmp/dump/20220203.dump

To work in Dbeaver directly see Backup/Restore .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM