mysql_connect('localhost') should use tcp/ip instead of socket
| From: | Roland Tapken | Date: | Sun, 03 Oct 2004 00:39:13 +0000 |
| Subject: | mysql_connect('localhost') should use tcp/ip instead of socket | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13110@lists.php.net to get a copy of this message | ||
Hi!
When using 'localhost' in mysql_connect(), php tries to use a socket
to connect to the mysql daemon. Is there a way to force php to resolve
the hostname of localhost, maybe by patching some source file? The
reason is that a socket is not avaible because mysql and apache are
running in different chroot jails on my server.
gruß, Roland
--
"Ich kenne niemanden, der nachts vom
Kiffen nach Hause kommt und seine Frau schlägt."