I just did an unwanted mysql upgrade and am now unable to start the mysql service. After doing some searching the common solution is to just create a symlink ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock The issue for me is I don''t have the file I am trying to symlink to (/var/run/mysqld/mysqld.sock) If I try to start mysql manually (mysql start) I get the error: # mysql start ERROR 2002 (HY000): Can''t connect to local MySQL server through socket ''/var/run/mysqld/mysqld.sock'' (2) Thanks for any help. -- 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 -~----------~----~----~----~------~----~------~--~---
Conrad Taylor
2009-Mar-05 01:33 UTC
Re: Can''t connect to local MySQL server through socket...
On Wed, Mar 4, 2009 at 5:05 PM, Chris Olsen < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I just did an unwanted mysql upgrade and am now unable to start the > mysql service. > > After doing some searching the common solution is to just create a > symlink > ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock > > The issue for me is I don''t have the file I am trying to symlink to > (/var/run/mysqld/mysqld.sock) > > If I try to start mysql manually (mysql start) I get the error: > # mysql start > ERROR 2002 (HY000): Can''t connect to local MySQL server through socket > ''/var/run/mysqld/mysqld.sock'' (2) >Hi, are you 100% sure that you need the location of this .sock file? If you do, then generate another Rails project and take a look at the database.yml file. Good luck, -Conrad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Chris Olsen
2009-Mar-05 01:35 UTC
Re: Can''t connect to local MySQL server through socket...
After running the proper command /etc/init.d/mysql start it then informed me that a log expiry must be set for the current configuration. It is a little odd that the default configurations don''t work, but it is working for me now so I am happy. -- 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 -~----------~----~----~----~------~----~------~--~---