Error from PEAR::DB
| From: | Anders K. Madsen | Date: | Fri, 13 Jun 2003 03:55:15 +0000 |
| Subject: | Error from PEAR::DB | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5932@lists.php.net to get a copy of this message | ||
Hi there people of PEAR!
I have a little question regarding PEAR::DB...
I've just started using it, and have a _very_ tiny little test-script, this:
---
<?php
$dsn = "mysql://user:password@localhost/database";
$db = DB::Connect($dsn);
if (DB::isError($db)) {
$db->getMessage();} else {
print 'Connected...\n';} $db->disconnect(); ?> --- And all I get is this: --- DB Error: connect failed --- Does anyone know what that means? I've tried connecting with the exact same data from a terminal, using the native mysql-client, and that works just fine... I've been searching the pear.php.net docs, but found nothing helpful... Hope you haven't heard this question a billion times before... Best regards Madsen -- ".signature, what's that?"