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 rake db:schema:dump
:
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
I'm at a lost here... why does ActiveRecord::StatementInvalid: Mysql2::Error: No database selected: SHOW TABLE
keep occurring?