List:General Discussion« Previous MessageNext Message »
From:Gerald Clark Date:April 19 2001 3:05pm
Subject:Re: Problems connecting to MySQL via PHP
View as plain text  
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:
>   (the manual)
>           (the list archive)
> To request this thread, e-mail <mysql-thread71860@stripped>
> To unsubscribe, e-mail
> <>
> Trouble unsubscribing? Try:
Problems connecting to MySQL via PHPCraig Pickup19 Apr
  • Re: Problems connecting to MySQL via PHPGerald Clark19 Apr