On 3/31/06, Omabele Onome <[EMAIL PROTECTED]> wrote:
> Hi!!!
>   I have written this script (see below) to check when the server or database 
> is not running...but I can not seem to work around the error it is giving. 
> The result it gave me is:
>   "Website is up and running
> Can't connect to data source"
snip
> my $dbh = DBI->connect()  #need to rectify error message problem
>           or die "Cannot connect to database! Error found: $DBI::errstr";
snip

You need to pass a DSN and possibly a username and password to the
connect function.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to