davecheet wrote:
> Hi Folks,
>
> After upgrading to Mac OSX 10.5 (Leopard) I discovered I
could no longer
> connect to MySql. I immediately searched the web for a
fix and found a few
> different posts offering solutions. No doubt due to my
own lack of knowledge
> the terminal on the other 'black arts' I was encouraged
to delve into along the
> way, every post I followed failed to solve my problem.
> I'm sure it's all messed up behind the scenes now as
I've dipped into all
> kinds of things trying to fix MySQL. The result is that
when I try to connect
> through Cocoa MySql which was my tool of choice on
OSX10.4 I get the following
> message:
> "Unable to connect to host localhost.
> Be sure that the address is correct and that you have
the necessary privileges.
> MySQL said: Can't connect to local MySQL server through
socket
> '/private/tmp/mysql.sock' (2)"
>
> I even tried MAMP which seemed to connect through
PHPMyAdmin on the first try
> but following that I get this message:
> " #2002 - The server is not responding (or the local
MySQL server's socket is
> not correctly configured) "
>
> I hate to ask but I really have tried everything over
the past month (over and
> over again) and I seem to have run out of options. Does
anyone has the time to
> help me find a solution?
>
"mysql.sock" may be missing or in the wrong directory:
http://forum.mamboserver.com/showthread.php?t=70766
Or per Dave Powers:
Try this in Terminal:
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
Mick