title: Configuring Rails project with mysql database
body: <p>I'm learning Ruby on Rails from lynda.com. I just made mysql database and now I'm trying to configure my rails project so it can connect to that database, but no matter what I try, I always hit this error after trying to <code>rake db:schema:dump</code>:</p>
  
  <pre><code>Kards52Proof$ rake db:schema:dump --trace
  ** Invoke db:schema:dump (first_time)
  ** Invoke environment (first_time)
  ** Execute environment
  ** Invoke db:load_config (first_time)
  ** Execute db:load_config
  ** Execute db:schema:dump
  rake aborted!
  ActiveRecord::StatementInvalid: Mysql2::Error: No database selected: SHOW TABLE
  </code></pre>
  
  <p>I'm at a lost here... why does <code>ActiveRecord::StatementInvalid: Mysql2::Error: No database selected: SHOW TABLE</code> keep occurring? </p>