RoR_Nb
2008-Jun-13 20:26 UTC
Rake displays Can''t connect local MySQL server through socket ''/var/run/mysqld/mysqld.sock'' (2)''
i have a small problem every time i run "rake db:migrate" it shows me an error Can''t connect local MySQL server through socket ''/var/run/mysqld/ mysqld.sock'' (2)'' can somebody help me? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Dhaval Parikh
2008-Jun-14 10:43 UTC
Re: Rake displays Can''t connect local MySQL server through s
hi its possible that either the socket is already in use or the the path for the socket is false.. these r the only 2 possiblities i guess thanks Dhaval Parikh Software Engineer www.railshouse.com sales(AT)railshouse(DOT)com -- 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 -~----------~----~----~----~------~----~------~--~---
RoR_Nb
2008-Jun-15 00:39 UTC
Re: Rake displays Can''t connect local MySQL server through s
Thanks for replying, What you said is actually very usefull because i didn''t know why this could be happening, can you give me any tip of how i could solve the problem? On Jun 14, 3:43 am, Dhaval Parikh <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> hi > > its possible that either the socket is already in use or the the path > for the socket is false.. > > these r the only 2 possiblities i guess > > thanks > > Dhaval Parikh > Software Engineerwww.railshouse.com > sales(AT)railshouse(DOT)com > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
RoR_Nb
2008-Jun-15 07:27 UTC
Re: Rake displays Can''t connect local MySQL server through socket ''/var/run/mysqld/mysqld.sock'' (2)''
Do you have any idea how i can start soliving this problem? On Jun 13, 1:26 pm, RoR_Nb <raveloteterocabi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i have a small problem every time i run "rake db:migrate" it shows me > an error > > Can''t connect local MySQL server through socket ''/var/run/mysqld/ > mysqld.sock'' (2)'' > > can somebody help me?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-15 09:56 UTC
Re: Rake displays Can''t connect local MySQL server through socket ''/var/run/mysqld/mysqld.sock'' (2)''
On Jun 15, 8:27 am, RoR_Nb <raveloteterocabi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Do you have any idea how i can start soliving this problem? > > On Jun 13, 1:26 pm, RoR_Nb <raveloteterocabi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > i have a small problem every time i run "rake db:migrate" it shows me > > an error > > > Can''t connect local MySQL server through socket ''/var/run/mysqld/ > > mysqld.sock'' (2)'' >Assuming that mysql is actually installed and running, check that what you''ve got in database.yml (in the socket parameter) matches what''s in /etc/my.cnf If database.yml doesn''t specify the socket then it''s probably falling back on some default, so set it to whatever is in my.cnf Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
RoR_Nb
2008-Jun-15 10:17 UTC
Re: Rake displays Can''t connect local MySQL server through socket ''/var/run/mysqld/mysqld.sock'' (2)''
Awesome, thanks it''s working now, I specified the socket and it''s working fine On Jun 15, 2:56 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jun 15, 8:27 am, RoR_Nb <raveloteterocabi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Do you have any idea how i can start soliving this problem? > > > On Jun 13, 1:26 pm, RoR_Nb <raveloteterocabi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > i have a small problem every time i run "rake db:migrate" it shows me > > > an error > > > > Can''t connect local MySQL server through socket ''/var/run/mysqld/ > > > mysqld.sock'' (2)'' > > Assuming that mysql is actually installed and running, > > check that what you''ve got in database.yml (in the socket parameter) > matches what''s in /etc/my.cnf > If database.yml doesn''t specify the socket then it''s probably falling > back on some default, so set it to whatever is in my.cnf > > Fred--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---