mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
7aa2f2b271
commit
022c09565b
1 changed files with 12 additions and 2 deletions
|
@ -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. "hostname:port" or a path to a socket
|
||||
number. eg. "hostname:port" or a path to a local socket
|
||||
eg. ":/path/to/socket" for the localhost.
|
||||
<note>
|
||||
<para>
|
||||
Whenever you specify "localhost" or
|
||||
"localhost:port" 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 "127.0.0.1"
|
||||
instead of "localhost". 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 ":port" was added in PHP 3.0B4.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue