Bug #56150 [Opn->Fbk]: PDOException - [2017] Can't open named pipe...

From: Date: Sat, 24 Dec 2011 06:25:55 +0000
Subject: Bug #56150 [Opn->Fbk]: PDOException - [2017] Can't open named pipe...
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166069@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=56150&edit=1

 ID:                 56150
 Updated by:         ssufficool@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


Thread (1 message)

  • ssufficool@php.net
  • Unknown Message
    • ssufficool@php.net
« previous php.bugs (#166069) next »