title: How to connect to postgresql using url
body: <p>I had asked an earlier <a href="https://stackoverflow.com/questions/2144603/heroku-dbpush-showing-invalid-database-url">question</a> which did not get any replies.  </p>
  
  <p>Basically I get an error <code>invalid database url</code> when I try to do <code>heroku db:push</code>.</p>
  
  <p>I figured I can try explicitly providing the database url. </p>
  
  <p>I tried:</p>
  
  <p><code>heroku db:push postgres://postgres@localhost/myrailsdb</code></p>
  
  <p>But that gave error:</p>
  
  <pre><code>Failed to connect to database:
    Sequel::DatabaseConnectionError -&gt; PGError fe_sendauth: no password supplied
  </code></pre>
  
  <p>What is the format for providing username and password?</p>