0

I am trying to import a database from my computer to heroku but it keep on saying unknown command for that.Even I am confuse about it which command to use .I have a postgre sql database.I want to know how to import a database


   push from SOURCE_DATABASE to REMOTE_TARGET_DATABASE
 REMOTE_TARGET_DATABASE must be empty.

 SOURCE_DATABASE must be either the name of a database
 existing on your localhost or the fully qualified URL of
 a remote databas


So what will be the remote_target_database ??? and do i need to specify my full path to source database ?

Aniket Tiwari
  • 3,561
  • 4
  • 21
  • 61

2 Answers2

3

Try the following.

heroku pg:push your_app_name_development DATABASE_URL

Dheeresha
  • 797
  • 1
  • 4
  • 6
0

PG Backups can be used as a convenient tool to import database dumps from other sources into your Heroku Postgres database.

Community
  • 1
  • 1