title: Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' on heroku push
body: <p>When i do git push heroku master ,it fails at rake assets precompile and i get an error <code>Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' heroku</code></p>
  
  <p><strong>What i already know</strong>
  Since i am using Rails 4,Definitely <code>config.assets.initialize_on_precompile = false</code> is out of the picture because is no longer required.</p>
  
  <p><code>heroku labs:enable user-env-compile</code> this feature is no longer supported by Heroku.  </p>
  
  <p>After doing research online, I learned that the solution might be here 
  <a href="https://devcenter.heroku.com/articles/buildpack-api" rel="nofollow">heroku build pack</a>
  But i don't understand how to run those commands.
  I keep getting <code>bash: bin/compile: No such file or directory</code></p>
  
  <p>How do i resolve this issue? I am using Rails 4.2.5 ,Ruby 2.3.0 and the Db is Mysql locally.Thank you in advance.</p>
  
  <p><strong>database.yml</strong></p>
  
  <pre><code>default: &amp;default
  adapter: mysql2
  encoding: utf8
  pool: 5
  username: root
  password: password
  host: localhost
  
  development:
  &lt;&lt;: *default
  database: respect_development
  
  test:
  &lt;&lt;: *default
  database: respect_test
  
  production:
  
     &lt;&lt;: *default
  database: respect_production
  username: respect
  password: &lt;%= ENV['RESPECT_DATABASE_PASSWORD'] %&gt;
  </code></pre>