From 0762f73b243c642d975b5314bfcb696a87392dc2 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 5 Mar 2003 20:47:28 +0000 Subject: [PATCH] FAQ 2.6 about localhost-sockets added. --- ChangeLog | 1 + Documentation.html | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2a19c6551..f6662a3b9 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $Source$ * updatedocs.sh: Script to make conversion easier 2003-03-05 Garvin Hicking + * Documentation.html: Added FAQ 2.6 about localhost-socket connections. * libraries/relation.lib.php3, libraries/transformations.lib.php3, tbl_relation.php3, tbl_move_copy.php3: Replace PMA_handleSlashes() call with PMA_sqlAddslashes() call because of new global s diff --git a/Documentation.html b/Documentation.html index ba1db449d..b6c9b041e 100755 --- a/Documentation.html +++ b/Documentation.html @@ -2345,6 +2345,23 @@ To create a new, empty mimetype please see libraries/transformations/template_ge in the phpMyAdmin configuration file.

+

+ [2.6] I get an "Access denied for user: 'root@localhost' (Using + password: YES)"-error when trying to access a MySQL-Server on a + host which is port-forwarded for my localhost +

+

+ When you are using a port on your localhost, which you redirect via + port-forwarding to another host, MySQL is not resolving the localhost + as expected.
+ Erik Wasser explains: The solution is: if your host is "localhost" + MySQL (the commandline tool 'mysql' as well) always tries to use the socket + connection for speeding up things. And that doesn't work in this configuration + with port forwarding.
+ If you enter "127.0.0.1" as hostname, everything is right and MySQL uses the + TCP connection. +

+

[3. Known limitations]