On Thu, Jul 2, 2009 at 8:11 AM, Rajendra
Bayana<rails-mailing-l...@andreas-s.net> wrote:
>  "Access denied for user 'root'@'localhost' (using password: NO)".

This is coming from MySql.  You need to set up config/database.yml to
match your mysql setup.

You can run mysql with no password for the root user, which is not
advisable, but is often done in a DEVELOPMENT environment.  It looks
like your mysql setup requires a root user password.

You can remove the password, if the machine is totally under your
control, I can't recall the details but a little googling should find
them for you.

The other alternative is to put the root mysql password in the
config/database.yml file.

The more normal setup is to create a mysql user for the Rails app, and
give it access to only the databases and tables it needs.  You really
want to do something like this for the deployed production action.

-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to