Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vipin93's avatar

how to use heroku databse backup to forge

Recently I deploy my laravel project on heraku but in future I'll switch to laravel forge ,here is one thing I want to know if I'm using heraku service and I export database date in file and when I switch to forge how can I use heraku database file to forge databse?

thanks

0 likes
1 reply
fideloper's avatar

I'm not sure what Heroku gives you as a backup file, but assuming it was created with the mysqldump tool (for MySQL) o rpg_dump tool (for PostgreSQL), you'll be able to log into your Forge server (over ssh) and use the mysql or pg_restore commands to add it to a database within MySQL or PostgreSQL respectively.

All of which means you'll need to copy the backup file to your server, log into your server, and run one of the above commands to get the copied database into your MySQL or PostgreSQL.

1 like

Please or to participate in this conversation.