Re: [PHP-DEV] mysql_connect('localhost') should use tcp/ip instead of socket

2004-10-03 Thread Andrey Hristov
Roland Tapken wrote: 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

[PHP-DEV] mysql_connect('localhost') should use tcp/ip instead of socket

2004-10-02 Thread Roland Tapken
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 differen