Re: confirming installation
| From: | Aaron Wormus | Date: | Thu, 26 Aug 2004 16:50:24 +0000 |
| Subject: | Re: confirming installation | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14301@lists.php.net to get a copy of this message | ||
Bob Leitner wrote:
All seemed fine until my script had to access the db - I get a DB Error: connect failed.What does your DSN look like? If the regular mysql_* functions work, then DB should work. I would think that it has to do with an error in your code or DSN string. Paste some code.
If nothing else, how do I get more information regarding the error? Like did it fail because of credentials, or whatever?$db = DB::connect($dsn); if (DB::isError($db)) { die($db->getMessage()); } Is that what you're doing? Aaron