Add note about bad special case in the mysql client lib which is quite

irretating.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@117309 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sascha Schumann 2003-02-20 11:20:34 +00:00
parent 7aa2f2b271
commit 022c09565b

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -->
<refentry id="function.mysql-connect">
<refnamediv>
@ -39,9 +39,19 @@
</para>
<para>
The <parameter>server</parameter> parameter can also include a port
number. eg. &quot;hostname:port&quot; or a path to a socket
number. eg. &quot;hostname:port&quot; or a path to a local socket
eg. &quot;:/path/to/socket&quot; for the localhost.
<note>
<para>
Whenever you specify &quot;localhost&quot; or
&quot;localhost:port&quot; as server, the MySQL client library will
override this and try to connect to a local socket (named pipe on
Windows). If you want to use TCP/IP, use &quot;127.0.0.1&quot;
instead of &quot;localhost&quot;. If the MySQL client library tries to
connect to the wrong local socket, you should set the correct path as
mysql.default_host in your PHP configuration and leave the server field
blank.
</para>
<para>
Support for &quot;:port&quot; was added in PHP 3.0B4.
</para>