php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56150 PDOException - [2017] Can't open named pipe...
Submitted: 2004-07-29 18:19 UTC Modified: 2013-02-18 00:35 UTC
From: dan at yes dot lt Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5CVS-2004-07-29 (dev) OS: Win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dan at yes dot lt
New email:
PHP Version: OS:

 

 [2004-07-29 18:19 UTC] 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');



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-08 12:06 UTC] 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.
 [2011-12-24 06:25 UTC] ssufficool@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2011-12-24 06:25 UTC] ssufficool@php.net
-Status: Open +Status: Feedback -Package: PDO +Package: *General Issues
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 23:05:51 2022 UTC