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 c
I had this exact same problem with my Dreamhost MySQL database. Turns out the solution was to tell Dreamhost is was Ok to accept connections from this foreign host. Otherwise, Dreamhost blocks all requests to MySQL that don't originate from their systems.
It seems that if Heroku is falling back to Amazon AWS despite your DATABASE_URL, it's because it's being denied access to your MySQL database.