[Techtalk] at wit's end with PHP to MySQL

Linda illini.engineer at att.net
Wed Jan 30 21:56:03 EST 2002

The  mysql.sock file  is in the   /var/lib/mysql  directory.
I created a symbolic link to it in the   /tmp  directory. This was one 
of the solutions I found on the web.

On 30 Jan 2002, at 17:44, Kai MacTane wrote:

> At 1/30/02 05:24 PM , Linda wrote:
> >Apache and PHP works together, but when I try to use PHP to
> >connect to MySQL, I get the error message "Can't connect to local
> >MySQL server on socket /tmp/mysql.sock"
> This may be silly of to ask, but do you have the socket file 
> /tmp/mysql.sock? It should be created by mysqld when it starts. (So, 
> perhaps also check if mysqld is running.)
> Sorry if that's just reiterating the very obvious. (I.e., if that's not it, 
> then it's something more complex that I know not of.)
>                                                  --Kai MacTane
> ----------------------------------------------------------------------
> "...and she sighed/And she died/In his arms/And he cried:
>   `Eleanor!'"
>                                                  --Concrete Blonde,
>                                                   "The Sky is a
>                                                    Poisonous Garden"
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk

More information about the Techtalk mailing list