Mysql2::Error: Table doesn't exist: SHOW FULL FIELDS FROM `sessions`

ttinggggg picture ttinggggg · Mar 20, 2015 · Viewed 12.8k times · Source

I just cloned an application from my developer and I want to set it up on my computer. I get this error when I go to localhost:3000, and I don't really understand what it means.

Error:

ActiveRecord::StatementInvalid - Mysql2::Error: Table 
'goacquire_development.sessions' doesn't exist: SHOW FULL FIELDS FROM `sessions`:

I think it could be my installation process, I'll appreciate if someone could explain this error to me.

Answer

Drenmi picture Drenmi · Mar 20, 2015

A few ideas:

  1. Make sure MySQL is running on your local machine.
  2. Make sure you have run rake db:create and rake db:migrate.
  3. Make sure you have a database.yml file configured with MySQL settings.

Hope this helps.