This happened on our server, and we had to reload the grant table
(mysqladmin reload).  Also, the mysql directories were owned by root so
we had to chown them to the mysql user.

I hope that helps,

Martin

Kuntrynet Office wrote:
> 
> I recently installed MySQL version 3.23.22 on a Linux server. It used to run
> fine. The problem is when I run a php query on a database it returns the
> error "Cannot connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (111) " Hmm. My mysql.sock file is located in
> /tmp/mysql.sock. The databases don't even seem to be located correctly. They
> reside in /usr/local/var along with my .err file. Anyone have any ideas? I
> configured using --prefix=/usr/local/.
> 
> TIA
> 
> Ed Curtis
> Kuntrynet Internet Services
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to