I am using RailsLive CD that has PC Linux OS. I am able to bring up the MySQL server. I can create databases. But when I run Rake migration task, I get: rake aborted! Can''t connect to local MySQL server through socket ''/var/lib/mysql/mysql.sock error message. I also tried the AWDWR suggestion and included: socket: /var/lib/mysql/mysql.sock in the database.yml file I get the same error. There is no mysql.sock file in /var/lib/mysql/ directory. Can someone please help? TIA. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Wed, 2006-11-15 at 10:48 -0500, Bala Paranj wrote:> I am using RailsLive CD that has PC Linux OS. I am able to bring up > the MySQL server. I can create databases. But > when I run Rake migration task, I get: > rake aborted! > Can''t connect to local MySQL server through socket > ''/var/lib/mysql/mysql.sock > error message. > > I also tried the AWDWR suggestion and included: > socket: /var/lib/mysql/mysql.sock > in the database.yml file > I get the same error. There is no mysql.sock file in /var/lib/mysql/ > directory. > Can someone please help? TIA.---- depends upon how mysql is configured... try this...what is output of? lsof | grep mysql.sock that should tell you if/where mysql.sock file is located Craig --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for the suggestion. When I type lsof, it says that it''s not a command. ls | grep mysql.sock does not return anything. depends upon how mysql is configured...> > try this...what is output of? > > lsof | grep mysql.sock > > that should tell you if/where mysql.sock file is located > > Craig >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---