Re: PEAR DB Error

From: Date: Mon, 23 Apr 2001 16:34:20 +0000
Subject: Re: PEAR DB Error
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-71@lists.php.net to get a copy of this message
Hmm. Replying to my own message. On reading through the archives, I found this tidbit. $dbh = DB::connect($dsn, array("debug" => 2)); in a message from Stig Sæther Bakken On adding the debug level 2, I get: Warning: Failed opening 'DB/dsn.php' for inclusion (include_path='/usr/local/lib/php/pear') in DB.php on line 230 There is, indeed, no dsn.php on my machine. I just checked out the latest and greatest pear from cvs. Again, any suggestions? Thanks! Chris ""Chris Mulcahy"" <not@given.com> wrote in message news:9c1kh4$6eq$1@toye.p.sourceforge.net... > 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! > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, e-mail: pear-general-unsubscribe@lists.php.net > For additional commands, e-mail: pear-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.pear.general (#71) next »