Access denied for user 'root'@'localhost'

Hi guys,
You know the simple “Hello World!” application which get rails to say on
a web page “Hello World!”, yeah? Well i’m am having trouble with it.
Everytime i go onto the http://localhost:3000/say/hello it come up with
this:

Mysql::Error in SayController#hello
#28000Access denied for user ‘root’@‘localhost’ (using password: NO)
RAILS_ROOT: C:/ruby/demo

I have a password and i am not using a database
I have put my password into the database.yml file and this still comes
up
What should i do?
Thanks
Chris

On 19 Dec 2007, at 16:09, Chris W. wrote:

Mysql::Error in SayController#hello
#28000Access denied for user ‘root’@‘localhost’ (using password: NO)
RAILS_ROOT: C:/ruby/demo

What exactly is in your database.yml ?

Fred

development:
adapter: mysql
encoding: utf8
database: demo_development
username: root
password: *******
host: localhost

test:
adapter: mysql
encoding: utf8
database: demo_test
username: root
password: *******
host: localhost

production:
adapter: mysql
encoding: utf8
database: demo_production
username: root
password: *******
host: localhost

On 19 Dec 2007, at 16:16, Chris W. wrote:

Can you connect on the command line with

mysql -u root -p demo_development

no but this app doesn’t include a db
its the simplest thing!

help!

Chris W. wrote:

help!

well, ruby/rails assumes a database.
if you want to go topless, here is
a way to do it. it will take a little bit
of effort.

but i would hook up a mysql database with one dubby table.
up to you.

:)))))))))

there may be other idea’s somewhere.

thanks i tried it with a table and it worked!
thanks m8
chris

any ideas?