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

From: Date: Tue, 02 Dec 2008 20:45:17 +0000
Subject: Re: why this code needs mysql.sock instead of mysqld.sock
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284006@lists.php.net to get a copy of this message
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/

« previous php.general (#284006) next »