Re: Speed of MySQL connections - Socket vs. Non-Socket

From: Date: Mon, 16 Apr 2001 23:17:43 +0000
Subject: Re: Speed of MySQL connections - Socket vs. Non-Socket
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48828@lists.php.net to get a copy of this message
Hi Alexander, @ 6:55:58 PM on 4/16/2001, Alexander Skwar wrote: ... > In a mysql_connect() it is possible to specify a path to the socket > which should be used for communicating with MySQL. Yes, it's in the documentation. int mysql_connect ([string hostname [:port] [:/path/to/socket] [, string username [, string password]]]) http://www.php.net/manual/en/function.mysql-connect.php > Now, when I connect thru a socket, is the datatransfer between PHP > and MySQL faster than when I connect via a (loop-)network? I would > assume so, because with a socket, there's not the network layer in > the way which has to be taken care of. > Is this correct? No earthly idea. -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies.

« previous php.general (#48828) next »