note 120215 deleted from pdo.connections by salathe

From: Date: Mon, 21 Sep 2020 14:56:46 +0000
Subject: note 120215 deleted from pdo.connections by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215382@lists.php.net to get a copy of this message
Note Submitter: d dot bergloev at gmail dot com ---- I would please advice people who talk about database port in reference with socket files to please read up about what a socket file is. TCP/IP uses ports, a socket file however is a direct pipe line to your database. So no, you should not replace localhost with local ip if you use a different port on your database server, because the socket file has nothing to do with your TCP/IP setup. And whenever possible, using the local socket file is much faster than establishing new TCP/IP connections on each request which is only meant for remote database servers.

« previous php.notes (#215382) next »