Hermann Giebels wrote:
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
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?
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
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php