PerceptiveJohn has asked for the wisdom of the Perl Monks concerning the following question:
I have other test scripts that do run through localhost but all they do is print a message. They don't do anything with DBI.#!C:\perl\bin\perl -w # Script: connectdbtest.pl Test To Connect To A Database. use strict; use DBI; my $dbh = DBI->connect("DBI:mysql:masslottery_db", "root", "system1"); die "Connect to masslottery_db failed: " . DBI->errstr() unless $dbh; print "connect to masslottery_db successful!\n"; $dbh->disconnect();
Should I be looking at some sort of setting for Apache? Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl On Server
by cwry (Monk) on Jul 12, 2006 at 01:17 UTC | |
|
Re: Perl On Server
by SadPenguin (Novice) on Jul 12, 2006 at 01:31 UTC | |
|
Re: Perl On Server
by mrbbking (Hermit) on Jul 12, 2006 at 18:59 UTC |