MySQL connection over SSH tunnel

There are three issues here. 1 – Forget about the SSH tunnel for now You cannot bind MySQL to more than one specific IP. The first bind-address clause is overridden (therefore, ignored) by the second one. Your server only listens to 99.99.99.99. The reason why you can connect with -h localhost but not with -h … Read more

SSH tunneling from Heroku

Yes, you can. Having now gone down this path: yes, it is possible to set up an SSH tunnel from heroku to an external database. [NOTE: My particular app was written in Ruby on Rails, but the solution given here should work for any language hosted on Heroku.] Statement of the problem I am running … Read more