0hqgfw
Last Updated: February 25, 2016
·
4.023K
· lscott3

Use a Remote Mysql Database With Heroku

It took me a while to find out how to use a remote database on Heroku so I figured I would post it here and have it for further reference. Another reason is that someone recently asked how to do this so, it may be more of a common thing than I thought.

Here is the command:

heroku config:add DATABASE_URL=mysql2://username:password@ip.goes.here/data_base_name --app heroku-app-name
Say Thanks
Respond