I'm a Rails developer newbie using MySQL as the database. I can successfully connect to MySQL using the command:
MySQL -u macDaddy -p
at the command prompt, so I know the user is valid and MySQL is running. But when I try to run
rake db:schema:dump
at the command line I get this error: rake aborted! Can't connect to MySQL server on 'localhost' (10061)
Is something wrong with my database.yml? Here it is:
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: bookmobile
pool: 5
username: macDaddy
password: booklover
host: localhost
socket: mysql
port: 3306
I've also tried removing the port and socket lines but I still get the same error. Please help. Here are my versions:
- developing on Windows 7
- MySQL Ver 14.14 distrib 5.5.21 for win64
- Server version 5.5.21
- Rails 3.2.1
Thanks!