Ruby + MySql

Hello. I am having trouble connecting to a mysql database using ruby. I
edited my config file, created the model + controller, but it will not
connect. I get the following error:

#28000Access denied for user ‘root’@‘localhost’ (using password: NO)

The problem is, I did include a password in the config file:

development:
adapter: mysql
database: cookbook
username: root
password: iputpasshere
host: localhost

Warning: The database defined as ‘test’ will be erased and

re-generated from your development database when you run ‘rake’.

Do not set this db to the same as development or production.

test:
adapter: mysql
database: cookbook
username: root
password: iputpasshere
host: localhost

production:
adapter: mysql
database: cookbook
username: root
password: iputpasshere
host: localhost

How do I tell ruby to use that password? Is there some kind of option I
am missing? Thanks in advanced.

~ Alias

Actually, I fixed that problem with a server restart. I still get an
error though:

Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS
FROM recipes

Any idea why I would get that?