|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-03-30 16:23 UTC] peaceable_whale at hotmail dot com
Description: ------------ Although the bug, according to https://bugs.php.net/bug.php?id=48082, should have been fixed in PHP 5.4.x, connection to MySQL via named pipe remains unsuccessful. 5.4.0 and 5.4.1 have the same issue. Test script: --------------- 1. Set the MySQL server to use Named Pipe only 2. Connect to it using mysqlnd (mysql or mysqli) Expected result: ---------------- Connection established Actual result: -------------- Connection failed PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 05:00:01 2025 UTC |
The script used for testing is as follows: <?php $db=new mysqli("localhost", "root", PASSWORD); if($db->connect_errno !== 0) { exit("Unable to connect to database: ".$db->connect_error); } echo "Connected"; $db->close(); ?> Result: Warning: mysqli::mysqli(): (HY000/2002): No connection could be made because the target machine actively refused it. Unable to connect to database: No connection could be made because the target machine actively refused it. Remarks: The database has enable-named-pipe and skip-networking in effect.