hi,
currently I'm experimenting with PDO a bit. I run a local mysql server, version 4.1.4, so I tried connecting to that.
Here is my code at this point:
try {
$link = new PDO('mysql:dbname=mydb;host=localhost', 'me', 'pw', array(PDO_ATTR_AUTOCOMMIT => 0, PDO_ATTR_PERSISTENT=>0));
} catch(PDOException $e) {
echo 'Connection Error: '.$e->getMessage()."\n".$e->getTraceAsString();
exit;
}
Now, it doesn't matter if the server is turned on or off, I am recieving: Connection Error: [2017] Can't open named pipe to host: . pipe: MySQL (2)
At first, I thought that this was due to me writing the DSN incorrectly. But after reading trough various documents, including Wez's Powerpoint Presentation at PHPWorks, I think the DSN I'm using IS correctly (or at least syntactically). After that, I figured it might be because PDO_mysql officially doesn't support mysql 4.1+, but when the server is turned OFF (the mysql server), it still reports EXACTLY the same error.
Does anyone have an idea what is wrong EXACTLY here? To me the message seems pretty strange, and I don't understand what it means.
Thanks, - Tul
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php