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
Written by Larry Scott
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mysql
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#