sas Thu Feb 20 06:20:35 2003 EDT
Modified files:
/phpdoc/en/reference/mysql/functions mysql-connect.xml
Log:
Add note about bad special case in the mysql client lib which is quite
irretating.
Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.5
phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.6
--- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.5 Fri Jan 31 12:11:54
2003
+++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Thu Feb 20 06:20:34
+2003
@@ -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>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php