If mysql is not running, you can just remove the pid file.  If you can
find it.  Here (centos linux), it's in /var/run/mysqld/mysql.pid  If
it's not there, check your mysqld startup file for a clue
(/etc/init.d/mysqld, again, here... not sure where it might be on your
OS).  Or try a "locate mysqld.pid".

Delete the file, and try restarting your mysql service.

-glenn

On Fri, Jul 29, 2011 at 12:08 PM, Scott Olmsted <[email protected]> wrote:
> I got a Mac mini last summer and installed Homebrew, Rails, MySQL
> 5.1.49, and a few other tools. I then got really busy and never got
> back to it (I'm reasonably productive on Ubuntu).
>
> Now I want to get back to the Mac. I updated OS X, which I think was
> what brought that to 10.6.8.
>
> But trying
>
>  mysql -u root -p
>
> gives
>
>  ERROR 2002 (HY000): Can't connect to local MySQL server through
> socket '/tmp/mysql.sock' (2)
>
> mysql is not running (nothing from 'ps aux'), but I am unable to start
> it:
>
>  $ mysql.server start
>  Starting MySQL
>  . ERROR! Manager of pid-file quit without updating file.
>
> and nothing I can find online helps, though I get hints that the
> upgrade to 10.6.8 may be at fault. I can't find a my.cnf file
> anywhere.
>
> Perhaps I need to reinstall MySQL 5.1 with homebrew, though I'm not
> sure how to do that.
>
> Thanks for any help you can give me.
>
> Scott
>
> --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby
>

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to