note 112328 added to mysqli.construct
| From: | paul at mtnlist dot com | Date: | Sun, 02 Jun 2013 08:19:19 +0000 |
| Subject: | note 112328 added to mysqli.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195028@lists.php.net to get a copy of this message | ||
If you want to connect via an alternate port (other than 3306), as you might when using an ssh
tunnel to another host, using "localhost" as the hostname will not work.
Using 127.0.0.1 will work. Apparently, if you specify the host as "localhost", the
constructor ignores the port specified as an argument to the constructor.
----
Server IP: 69.147.83.199
Probable Submitter: 24.181.195.1
----
Manual Page -- http://php.net/manual/en/mysqli.construct.php
Edit -- https://master.php.net/note/edit/112328
Del: integrated -- https://master.php.net/note/delete/112328/integrated
Del: useless -- https://master.php.net/note/delete/112328/useless
Del: bad code -- https://master.php.net/note/delete/112328/bad+code
Del: spam -- https://master.php.net/note/delete/112328/spam
Del: non-english -- https://master.php.net/note/delete/112328/non-english
Del: in docs -- https://master.php.net/note/delete/112328/in+docs
Del: other reasons-- https://master.php.net/note/delete/112328
Reject -- https://master.php.net/note/reject/112328
Search -- https://master.php.net/manage/user-notes.php