Hi all, I''m having a problem with accessing MySQL from RoR on Mac OS X Leopard. Specifically when I try to create a scaffold, I get an access denied for user error, no matter what username and password I try to use. I''ve tried leaving it blank, and I''ve tried using my Mac admin password without any luck. I installed MySQL using the Hivelogic guide, and I''ve been working through the Agile Web Development with Rails book (following their Depot store example) and now I am stuck! Running MySQL from the terminal seems to work fine, it''s only through RoR that I have a problem. In fact the ''create.sql'' script to set up the database runs without any errors, so I''m a bit confused as to what''s gone wrong now. Any help would be much appreciated! Thanks, Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
If you haven''t set up your username and password for MySQL, your username is: root and your password is: Yes. Don''t type anything in the password. Here''s my example: development: adapter: mysql database: my_app_name_development username: root password: socket: /tmp/mysql.sock --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Aha, thanks very much! That must have been the only combination I hadn''t tried! Thanks again, Mark On Apr 10, 3:48 pm, "T K" <tek.k...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If you haven''t set up your username and password for MySQL, > your username is: root > and your password is: > > Yes. Don''t type anything in the password. > > Here''s my example: > > development: > adapter: mysql > database: my_app_name_development > username: root > password: > socket: /tmp/mysql.sock--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---