bundle exec rake db:migrate
to create a table in database. I got this error
rake aborted! Can't connect to MySQL server on 'localhost' (10061) Tasks: TOP => db:migrate (See full trace by running task with --trace)
My simple work around was going to config/database.yml file and changing the host to use 127.0.0.1 instead of localhost as follows.
development: adapter: mysql2 encoding: utf8 reconnect: false database: quiz_development pool: 5 username: root password: host: 127.0.0.1