Daniel Ahn
2007-Aug-02 09:22 UTC
A rather n00by question on rake, from "Build Your Own RoR Applications" by Patrick Lenz
Hi! I had a question on rake. I am going through Mr. Lenz''s book, and have been coasting through successfully until I hit the section in Ch. 6 on testing. At the command line, in my application root, I typed: $ rake test:units My error message was: daniel-ahns-power-mac-g5:~/Sites/shovell dannyG5$ rake test:units (in /Users/dannyG5/Sites/shovell) rake aborted! #28000Access denied for user ''root''@''localhost'' (using password: NO) (See full trace by running task with --trace) It seems as if rake is trying to communicate with mysql -- i put a password on mysql, though my username is still root. Do I have to log on to mysql or somehow provide rake with my mysql password so it can successfully test? How do I do that? When I used $ rake db:migrate, everything worked fine, so I''m confused, as my mysql knowledge is at a beginner level. I''m on a G5 OSX 10.4.10, running Ruby 1.8.6, rails 1.2.3, mysql 5. Any help would be greatly appreciated! Daniel -- "Let not your heart be troubled; you believe in God, believe also in Me. In My Father''s house are many mansions; if not, I would have told you. I go to prepare a place for you. And if I go and prepare a place for you, I will come again and receive you to Myself; that where I am, you may be also. And where I go you know, and the way you know." Thomas said to Him, "Lord, we do not know where You are going, and how can we know the way?" Jesus said to him, "I am the way, the truth, and the life. No one comes to the Father except through Me. If you had known Me, you would have known My Father also; and from now on you know Him and have seen Him." John 14:1-10 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Lutz Horn
2007-Aug-02 09:27 UTC
Re: A rather n00by question on rake, from "Build Your Own RoR Applications" by Patrick Lenz
Hi, 2007/8/2, Daniel Ahn <et3rnal.d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > daniel-ahns-power-mac-g5:~/Sites/shovell dannyG5$ rake test:units > (in /Users/dannyG5/Sites/shovell) > rake aborted! > #28000Access denied for user ''root''@''localhost'' (using password: NO) >As you said, there is a password for user "root" on your MySQL DB. You must put this password into your config/databas.yml for the test environment. Lutz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Shane Killian
2007-Aug-02 10:07 UTC
Re: A rather n00by question on rake, from "Build Your Own Ro
Once you''ve changed that you can double check: mysqladmin -u root -p password -- 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 -~----------~----~----~----~------~----~------~--~---
Lutz Horn
2007-Aug-02 10:10 UTC
Re: A rather n00by question on rake, from "Build Your Own Ro
Hi, 2007/8/2, Shane Killian <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:> mysqladmin -u root -p passwordBut be aware that there must not be a blank between "-p" and your password. Lutz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
joaquim pedro antunes
2007-Aug-02 13:58 UTC
Re: A rather n00by question on rake, from "Build Your Own Ro
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lutz Horn wrote:> Hi, > > 2007/8/2, Shane Killian <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>: >> mysqladmin -u root -p password > > But be aware that there must not be a blank between "-p" and your password. > > Lutz > > > >Hi, you could also do mysql -u root -p (press enter) and then get a prompt for password. this is useful if there are people watching your monitor and you don''t want to type the pass in clear text. jp antunes http://open-mind-open-opinion.blogspot.com http://ruby-lang.org/pt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGseMUu+hZEZ0wEkoRAha6AJ9JnBy/nYX6/pA02QfvkSRxuF8+CACfeXEY ojc43K8ujf0nBvi/u0WsSYU=35xh -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---