Topic: Database Connections

I've just got the message:

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

But in my database.yml file I have:

development:
  adapter: mysql
  database: energie_development
  username: daz
  password: p@$$word
  socket: /var/run/mysqld/mysqld.sock


Does anybody know why rails is trying to connect as 'root'@'localhost'?? I've never experienced this before. When I run rake:db migrate, that does connect to the database.

Thanks,

DAZ

Re: Database Connections

Hi Daz,

Have you restarted your script/server session since changing the database.yml file?  rake db:migrate will connect even if you haven't restarted the server session.

~Chris