Make sure the directory /var/lib/mysql is world readable and searchable.
Craig Pickup wrote:
>
> I have MySQL running on our server with Apache and php4.
>
> If I try connecting to MySQL server via php I get the error:
>
> Warning: MySQL Connection Failed: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (111) in...
>
> The socket is there and is created when MySQL is restarted. When I run
>
> mysqladmin --socket=/var/lib/mysql/mysql.sock version
>
> this seems to indicate that the socket is working okay.
>
> Any suggestions gratefully appreciated.
>
> Thanks
>
> Craig Pickup
>
> ---------------------------------------------------------------------
> 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