|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-01-05 15:54 UTC] steffen at howarts dot info
Description:
------------
Mysql Server configured so that you can't use the default socket:
[mysqld]
skip-networking
socket=abcdef
Connecting like isn't possible:
//this is the way it works with libmysql (with patch):
new PDO("mysql:host=.;unix_socket=abcdef")
//this is the way how it works with mysqlnd (with patch):
//This seems to be very slow (5000ms without networking, while
//libmysql results in 20ms - which is probably a different bug)
new PDO("mysql:host=.;unix_socket=\\\\.\\pipe\\abcdef")
TLDR: The bug is that PDO mysql only checks
for the unix-specific case of 127.0.0.1
while mysqlnd expects an explicit . for windows named pipes.
PatchesPDO_MYSQLWin32-001.patch (last revision 2015-01-05 15:55 UTC by steffen at howarts dot info)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Yes, internally. But i'm talking about how it's represented to outside, IMHO should be like new PDO("mysql:host=.;named_pipe=\\\\.\\pipe\\abcdef") But agreed, better to fix it now as is and maybe rename in master then. I'm going to apply your patch then. Thanks.