ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
my $dbh = DBI->connect( "dbi:mysql:$db_name;host=$db_host", $db_user, $db_pass, { RaiseError => 1, AutoCommit => 0 } ) || push @errors, "Database connection not made +: $DBI::errstr";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test mysql connection, and return nice message?
by almut (Canon) on Mar 13, 2010 at 14:59 UTC | |
by ultranerds (Hermit) on Mar 13, 2010 at 15:22 UTC | |
|
Re: Test mysql connection, and return nice message?
by liverpole (Monsignor) on Mar 13, 2010 at 14:54 UTC |