# PG database migration from Heroku not working

**URL:** <https://community.fly.io/t/pg-database-migration-from-heroku-not-working/6881>\
**Category:** Questions / Help\
**Tags:** postgres\
**Created:** [September 3, 2022, 9:18pm UTC](https://community.fly.io/t/pg-database-migration-from-heroku-not-working/6881 "2022-09-03T21:18:01Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![tj1](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@tj1](https://community.fly.io/u/tj1)\
**Post date:** [September 5, 2022, 6:31pm UTC](https://community.fly.io/t/pg-database-migration-from-heroku-not-working/6881/12 "2022-09-05T18:31:52Z")

</div>

Try these instructions to download a dump and re-upload:

> [@Transferring Postgres from Heroku](https://community.fly.io/t/transferring-postgres-from-heroku/6611/14):
>
> Wuhu tada it finally worked for me. Thank you so much @tj1 for leading me on the way. Here is a precise breakdown of what I did for it to work, with a lot of repetition from @tj1 's advice: Get your latest dump by running heroku login heroku pg:backups:capture heroku pg:backups:download In one terminal, launch: fly proxy 15432:5432 -a my-db-app-name # make sure it's the name of your db-app, not your main app In another terminal, list your db names to get the exact name of your DB with…

---

_[View the full topic](https://community.fly.io/t/pg-database-migration-from-heroku-not-working/6881)._
