note 127485 added to mysqli.quickstart.connections
| From: | xylene2301 at gmail dot com | Date: | Thu, 11 Aug 2022 22:47:06 +0000 |
| Subject: | note 127485 added to mysqli.quickstart.connections | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219422@lists.php.net to get a copy of this message | ||
"The hostname localhost has a special meaning. It is bound to the use of Unix domain sockets.
To open a TCP/IP connection to the localhost, 127.0.0.1 must be used instead of the hostname
localhost."
Is there something I missed or is this 1st provision incorrect?
On windows11, using PHP 7.4 and MySQL 8,
$conn = new mysqli("localhost", "root", "pword", "tstDB");
echo $conn->host_info . "\n";
returns:
localhost via TCP/IP Connected to the database.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.133 (proxied: 2806:102e:19:9745:f004:dfa5:72ba:8b6e)
----
Manual Page -- https://php.net/manual/en/mysqli.quickstart.connections.php
Edit -- https://main.php.net/note/edit/127485
Del: integrated -- https://main.php.net/note/delete/127485/integrated
Del: useless -- https://main.php.net/note/delete/127485/useless
Del: bad code -- https://main.php.net/note/delete/127485/bad+code
Del: spam -- https://main.php.net/note/delete/127485/spam
Del: non-english -- https://main.php.net/note/delete/127485/non-english
Del: in docs -- https://main.php.net/note/delete/127485/in+docs
Del: other reasons-- https://main.php.net/note/delete/127485
Reject -- https://main.php.net/note/reject/127485
Search -- https://main.php.net/manage/user-notes.php