[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] [RaQ4] php + mysql



>Anyone know what might be wrong here?  Do I need to do something to PHP to
>make it recognize MySQL?

In my case I had to say that mysql.sock is not in /tmp/mysql.sock , ( as it seems it usually is ) ,
but in /var/lib/mysql/mysql.sock

So I changed my php code to explicitly :
mysql_connect("localhost::/var/lib/mysql/mysql.sock",$user,$pass);

Benoit