I am developing a simple PHP application running on Heroku. I have created a CSV file and am using it as a simple database.
Now I want to create a database on Heroku, so I added a Postgres instance and its name is heroku-postgres-9f90a33a::ivory
.
I want to know how I can create and manage my database instance to perform actions like creating a table.
host = ...
database = ...
User = ...
Port = ...
Password = ...
Now Connect to the database using PostgreSQL’s interactive terminal client.
If you don't have it already installed then you’ll have to turn to your platform’s package management suite (e.g. on Ubuntu run sudo apt-get install postgresql-client) or go to postgresql.org, where you’ll find available for download pre-built binary packages suitable for FreeBSD, Linux, Mac, Solaris and Windows, as well as other installation options.
That will create a table....
I know owner of this question has already solved the problem but still posting this answer for future references....
If any problems can refer this tutorial
This is one way.....another way would be using Jack DB in which you will be able to fire any queries and see the data in your DB located at Heroku.