Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
My host says that they have installed the DBI module but when I try and test it I don't get any response.--Just a blank page. Am I doing anything wrong or is the problem with my host and the module installation?
#!/usr/bin/perl -w use DBI; $db="accountname_webapp"; $host="localhost"; $user="accountname_webadmi"; $password="password"; my $dbh = DBI->connect ("DBI:mysql:database=$db:host=$host", $user, $password) or die "Can't connect to database: $DBI::er +rstr\n"; $dbh->disconnect or warn "Disconnection error: $DBI::errstr\n"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installing and Testing DBI
by Tanktalus (Canon) on May 20, 2011 at 15:01 UTC | |
by Anonymous Monk on May 20, 2011 at 15:44 UTC |