Mysql::Error in RecipeController#new

Hi,

I’m doing the following tutorial
:Radar – O’Reilly
but when I’m trying to access the database I get the following error

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

That’s strange because the database.yml file is defined with a password
:

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

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

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

Any idea ? Thanks

Hi,

On 15 May 2006, at 10:57, Alexandre AJ wrote:

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

That’s strange because the database.yml file is defined with a
password

Did you restart after changing your database.yml?

Jon

Don’t use the same database name for test and development/production!
You will loose all your data as soon as you run a test.
Can’t help you with your question, sorry.

Erik.

Alexandre AJ schreef:

username: root
Any idea ? Thanks


Erik van Oosten

Erik van Oosten wrote:

Don’t use the same database name for test and development/production!
You will loose all your data as soon as you run a test.
Can’t help you with your question, sorry.

Erik.

Alexandre AJ schreef:

username: root
Any idea ? Thanks


Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/

I missed to restart now it’s working fine thanks