Re: MYSQL_SOCkET vs. mysql.default_socket

From: Date: Wed, 29 Oct 2008 05:13:59 +0000
Subject: Re: MYSQL_SOCkET vs. mysql.default_socket
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-45566@lists.php.net to get a copy of this message
Hermann Giebels wrote:
Hello, phpinfo shows two values for the socket location of mysql. One is called MYSQL_SOCKET, the other one, which I can define in the php.ini, is called mysql.default_socket. Now I wonder where the first comes from and where or how to manipulate this. And what is the difference, which one has precedence? Why are there two settings at all?
<guess> MYSQL_SOCKET is used if you specify 'localhost' as the server name. PHP communicates via the socket instead of via tcp/ip in this case. This might only look for socket files in standard locations. If mysql.default_socket is specified, that is used instead of MYSQL_SOCKET (eg the socket file is in a non-standard path like /usr/local/mysql/ or something). -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#45566) next »