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

Kai MacTane kmactane at GothPunk.com
Wed Jan 30 18:44:48 EST 2002


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"




More information about the Techtalk mailing list