On Mon, 21 May 2001, Rodney Broom wrote:
> $dbh = DBI->connect($dsn, dbusrname, dbpassword)
> or die "Error: $DBI::errstr";
If you want to die then
$dbh = DBI->connect($dsn, dbusrname, dbpassword, { RaiseError => 1});
would look neater.
s/Raise/Print/ to just have it spew the error messages to the log
without having to put 'or warn "..."' after every other line.
- ask
--
ask bjoern hansen, http://ask.netcetera.dk/ !try; do();
more than 100M impressions per day, http://valueclick.com
- RE: Connection to MySQL DB fails when mod_perl enabled.... Ken Williams
- RE: Connection to MySQL DB fails when mod_perl enabled.... Jonathan M. Hollin
- Re: Connection to MySQL DB fails when mod_perl enabled.... Rodney Broom
- RE: Connection to MySQL DB fails when mod_perl enabled.... Jonathan M. Hollin
- RE: Connection to MySQL DB fails when mod_perl enabled.... Jonathan M. Hollin
- RE: Connection to MySQL DB fails when mod_perl enabled.... Ken Williams
- RE: Connection to MySQL DB fails when mod_perl enabled.... Jonathan M. Hollin
- RE: Connection to MySQL DB fails when mod_perl enabled.... Ken Williams
- Re: Connection to MySQL DB fails when mod_perl enabled.... Mike Cameron
- Re: Connection to MySQL DB fails when mod_perl enabled.... Matt Sergeant
- Re: Connection to MySQL DB fails when mod_perl enabled.... Ask Bjoern Hansen
- Re: Connection to MySQL DB fails when mod_perl enabled.... Jonathan M. Hollin
- Re: Connection to MySQL DB fails when mod_perl enabled.... Jonathan M. Hollin
- RE: Connection to MySQL DB fails when mod_perl enabled.... Bird Lei
- Re: Connection to MySQL DB fails when mod_perl enabled.... Ged Haywood
