I want to use mysql database which is hosted on my own server.
I’ve changed DATABASE_URL and SHARED_DATABASE_URL config vars to point to my server, but it’s still trying to connect to heroku’s amazonaws servers. How do I fix that?
I want to use mysql database which is hosted on my own server. I’ve
Share
According to the Heroku documentation, changing
DATABASE_URLis the correct way to go.Here’s an example that should work:
heroku config:add DATABASE_URL=mysql://user:password@host/dbYou may need to redeploy by making a change and running
git push heroku master