Hello. I have set a rails app, set the database.yml file, generated a simple model, created the migration class file for this model and then i´m trying to run the cmd: rake migrate, but i receive the following msg: 1. C:\Documents and Settings\Ken\My Documents\RoR Projects\railslist>rake migrate 2. (in C:/Documents and Settings/Ken/My Documents/RoR Projects/railslist) 3. rake aborted! 4. #28000Access denied for user ''root''@''localhost'' (using password: YES) What´s probably happening is that MySql is denying access to Rails ... but i can´t figure out how to fix it. Any ideas? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> What´s probably happening is that MySql is denying access to Rails ... > but i can´t figure out how to fix it. Any ideas?if you''re database.yml has something like: username: root password: i.e. no password Try connecting to mysql: mysql -u root If you can''t connect, you''ll need to set up a user ''root'' without a password. Something like from within mysql: GRANT ALL PRIVILEGES ON *.* TO ''root''@''localhost'' WITH GRANT OPTION; MySQL docs: http://dev.mysql.com/doc/refman/5.0/en/adding-users.html --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> 1. C:\Documents and Settings\Ken\My Documents\RoR > Projects\railslist>rake migrateoops. rake migrate is deprecated, instead use: rake db:migrate --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I am also having the same problem now. if u find a soln. please let me know. Mohan On Mar 8, 5:24 pm, "toby privett" <tobypriv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 1. C:\Documents and Settings\Ken\My Documents\RoR > > Projects\railslist>rake migrate > > oops. rake migrate is deprecated, instead use: > rake db:migrate--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi all ... I created a new user and set the proper permissions to this new user and now everything works fine! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---