Database administration
Current production database on Heroku
The credentials are
Host: ec2-52-87-121-192.compute-1.amazonaws.com
Database: d1hlu2cr9ta2p3
User: ud6dfgef6bi48k
Password can be found on the database credentials page on Heroku
New production database on AWS
The credentials are
Host: cobudget-prod.cird90svlmvv.us-west-2.rds.amazonaws.com
Database: cobudget_prod
User: cobudget
Password is currently only known by Michael and Juliana
Moving a database to a new database instance
Use
pg_dump
to dump the exsting database into a fileEdit the user name to fit the new database to be used
use
psql
to load the data into the new database
Example: Dumping the heroku database and loading it on AWS
First dump the Heroku database
Edit the user name from "ud6dfgef6bi48k" to "cobudget"
Create the new database
Load the new database with the previously dumped data
The load should be executed with no errors.
To look around in the database, use psql
In case something goes wrong, you can always delete the database
and restart with creating the new database.
Last updated