note 120215 added to pdo.connections

From: Date: Wed, 23 Nov 2016 09:38:45 +0000
Subject: note 120215 added to pdo.connections
Groups: php.notes 
Request: Send a blank email to php-notes+get-207525@lists.php.net to get a copy of this message
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. ---- Server IP: 72.52.91.14 Probable Submitter: 46.166.188.218 ---- Manual Page -- http://php.net/manual/en/pdo.connections.php Edit -- https://master.php.net/note/edit/120215 Del: integrated -- https://master.php.net/note/delete/120215/integrated Del: useless -- https://master.php.net/note/delete/120215/useless Del: bad code -- https://master.php.net/note/delete/120215/bad+code Del: spam -- https://master.php.net/note/delete/120215/spam Del: non-english -- https://master.php.net/note/delete/120215/non-english Del: in docs -- https://master.php.net/note/delete/120215/in+docs Del: other reasons-- https://master.php.net/note/delete/120215 Reject -- https://master.php.net/note/reject/120215 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#207525) next »