-
Check out
locate DBI
...
/usr/lib/perl5/DBI
...
And see if this helps
#!/usr/bin/perl -w
print "Content-type:text/html\n\n";
use CGI qw(:standard);
#use Fcntl qw(:flock);
# for DB
use DBI;
# connecting to the mysql server running on the web server.
# you need to specify your own server.
my $sqlhost = "localhost";
my $database = "test";
my $user = "root";
my $password = "your_password";
print "connecting to $sqlhost...";
my $dbh = DBI->connect("DBI:mysql:$database:$sqlhost", $user, $password) or die "Can't connect to MySql server at $sqlhost\n";
print "succeeded.\n";
$dbh->disconnect;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Vintage Apple USB Mouse M4848 Bondi Blue iMac G3 Hockey Puck - Tested Working
$22.99

Apple cloth fabric banner iBook tangerine orange New Old Stock Vintage
$99.00

Vintage Apple Mac OS 9 Retail Box 1999 Sherlock 2 Original CD Manuals
$50.00

Apple II Plus Model A2S1048A Vintage Personal Computer Powers On, Read
$170.00

Vintage Apple USB Mouse M4848 Lime Green iMac G3 Hockey Puck - Tested Working
$59.99

Lot of 3 VIntage Apple Computer Rainbow Logo Sticker Decal Macintosh 1980s NOS
$7.00

Apple Computer cards Super Serial SCSI AST -Orange Micro ++ Vintage 1980's
$169.00

Rare Vintage Macintosh Apple Wooden Disk Storage Box Dovetailed
$69.95

Vintage Apple Color RGB Color Monitor A2M6014. Used.
$199.99

Vintage Apple iBook G3 Clamshell M2453 Dead HDD For Parts As is
$189.99