How to use your own mysql database server with heroku?

后端 未结 3 1297
离开以前
离开以前 2021-02-09 15:19

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

3条回答
  •  执笔经年
    2021-02-09 16:11

    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.

提交回复
热议问题