简体   繁体   中英

How to access remote MySQL database from Heroku?

We have a legacy application running in a shared hosting service (JustHost). Due to which I am not able to write any newer technology apps easily.

I have created a test heroku app to talk to the MySQL database that is in the remote server. I have followed the steps from the Heroku side, with respect to adding the remote db url, etc.

But my hosting service allows remote access only from whitelisted IP address (as it should). How does one get a public IP (or IP range) for a Heroku app?

您可以尝试使用具有静态IP的某种代理节点,以安全地与您的Heroku应用进行通信

Did you try to search heroku addons for providing static IP? or try this one https://devcenter.heroku.com/articles/quotaguardstatic

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM