title: Timeout on remote database connection at Heroku
body: <p>Its possible connect to a remote mysql database on a heroku application?</p>
  
  <p>I'm trying to connect on a <a href="http://app.umbler.com" rel="nofollow noreferrer">umbler</a> remote database and getting a timeout error: </p>
  
  <p><code>"at=error code=H12 desc="Request timeout" method=GET path="/api/public/estabelecimentos/11" host=cheff-casa.herokuapp.com request_id=41221e2c-0dc5-4ffc-8915-2018a4cee9b3 fwd="191.240.220.62" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=http"</code></p>
  
  <p>My connection string: "jdbc:mysql://" + DB_HOST + ":" + DB_PORT + "/jfood?<strong>sslmode=require</strong>"</p>
  
  <p>Obs.:</p>
  
  <ul>
  <li>Already tried with and without sslmode=require;</li>
  <li>Remote database access is active;</li>
  <li>Connection it's ok on localhost;</li>
  <li>If I change to clearDB, it works fine (clearDB allow only 5mb);</li>
  <li>Already tried add connectTimeout=120000 on connection string;</li>
  <li><a href="https://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java#connecting-to-a-database-remotely" rel="nofollow noreferrer">This doc</a> its about connect Heroku Postgres remotely. I cant do it to mysql? '-'</li>
  </ul>