Edit report at https://bugs.php.net/bug.php?id=56150&edit=1
ID: 56150 Updated by: ssuffic...@php.net Reported by: dan at yes dot lt Summary: PDOException - [2017] Can't open named pipe... -Status: Open +Status: Feedback Type: Bug -Package: PDO +Package: *General Issues Operating System: Win2k PHP Version: 5CVS-2004-07-29 (dev) Block user comment: N Private report: N New Comment: Please try using this snapshot: http://snaps.php.net/php5.4-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2004-11-08 12:06:58] vincent at 7oqp dot net pdo_mysql try to connect to mysql with unix socket if you enter "localhost" as hostname. Use ip address (127.0.0.1) instead of hostname (localhost) : $db = new PDO('mysql:dbname=test;host=127.0.0.1', 'user', 'password'); It worked for me on XP. ------------------------------------------------------------------------ [2004-07-29 18:19:48] dan at yes dot lt Description: ------------ Fatal error: Uncaught exception 'PDOException' with message '[2017] Can't open named pipe to host: . pipe: MySQL (2)' in ... Reproduce code: --------------- $db = new PDO('mysql:dbname=test;host=localhost', 'user', 'password'); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=56150&edit=1