Hi, I don't know whether I can ask this question on this mailing list or not, but I want to know how the php communicates with mysql, when it is on the localhost. Does it use unix domain sockets or it uses TCP sockets only? Any help or pointers in this regard will be of great help for me.
Thanks, ramana.
if you don't specify a hostname it uses unix sockets.
$dbh=mysql_connect() or die(mysql_error()); # uses unix sockets
you can prove it by changing
mysql.default_socket="/tmp/mysql.sock"
to something wrong in your php.ini and then watching it fail when you connect.
-jsd-
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]