PEAR DB Error
| From: | Chris Mulcahy | Date: | Mon, 23 Apr 2001 16:18:36 +0000 |
| Subject: | PEAR DB Error | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-70@lists.php.net to get a copy of this message | ||
Greetings:
I keep getting an error trying to use PEAR. I keep receiving:
--> SNIP <--
mysql://myusername:mypassword@localhost/workout
DB Error: not found
--> SNIP <--
When I execute the following:
--> SNIP <--
$dsn = "mysql://myusername:mypassword@localhost/workout"
$db = DB::connect($dsn);
if (DB::isError($db)) {
echo "$DSN<BR>";
die($db->getMessage());
}
--> SNIP <--
However, I can do:
mysql -umyusername -pmypassword -hlocalhost workout
and it works just fine.
Does anyone have any suggestions? I have the same error when I try with
postgresql as well.
Thanks!