Re: why this code needs mysql.sock instead of mysqld.sock

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

 



On 2 Dec 2008, at 20:15, ann kok wrote:
<?php
$link=mysql_connect('localhost','usrname','password');
if(!$link) echo "fail";
else echo "success";
mysql_close();
?>

The location of the socket is compiled into the mysql lib. I believe it can be changed from php.ini - check the manual for details. If not then your easiest option is to create a symlink, or alternatively recompile the extension.

-Stut

--
http://stut.net/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux