ID:               42977
 Updated by:       [EMAIL PROTECTED]
 Reported By:      marc at perkel dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         MySQL related
 Operating System: linux
 PHP Version:      5.2.4
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

If you want to read settings from the my.cnf you have to use MySQLi and
provide the option MYSQLI_READ_DEFAULT_GROUP, ext/mysql is legacy code.
(see also http://bugs.mysql.com/bug.php?id=31577 )


Previous Comments:
------------------------------------------------------------------------

[2007-10-15 17:14:41] marc at perkel dot com

Description:
------------
When a PHP application tries to call MySQL and it is set to talk to
localhost it talks only to the socket and not to TCP 127.0.0.1. In
my.cnt I set the client as follows:

[client]
protocol=TCP

However that is ignored.

I'm running a web server hosting some 100 applications installed by
many different people. So changing all the localhost setting to
127.0.0.1 isn't practical. What I want to do is not use the socket at
/var/lib/mysql/mysql.sock at all. The reason is that I'm trying to
mugrate all mysql to a dedicated mysql server and having the web server
talk to 127.0.0.1 and link them with an SSH tunnel. In this setup there
will be no socket.

I left a bug report at mysql.com and they blame the problem on PHP so
i'm now here to let you know about it.


Reproduce code:
---------------
Set configuration to localhost and disable socket and PHP can't talk to
TCP 127.0.0.1


Expected result:
----------------
I expect PHP to ignore the unix socket and talk to TCP 127.0.0.1

Actual result:
--------------
No access


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42977&edit=1

Reply via email to