Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Trouble is, when I run it just to check the connection, it gets an error at the third line of the code, the part which says "Use DBI;". Please, what could be wrong? I'm pretty excited to learn PERL..!#!/usr/bin/perl use strict; use DBI; #Connect to the database my $dbh= DBI->connect('DBI:mysql:my_database','my_name','my_password') + or die "Couldn't open database: "$DBI::errstr;stopped"; $dbh->disconnect();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Establish Connection
by Ovid (Cardinal) on Jun 09, 2000 at 22:56 UTC | |
|
(jcwren) Re: Establish Connection
by jcwren (Prior) on Jun 09, 2000 at 22:44 UTC | |
|
Re: Establish Connection
by plaid (Chaplain) on Jun 09, 2000 at 22:45 UTC | |
by Anonymous Monk on Jun 09, 2000 at 23:07 UTC | |
|
Re: Establish Connection
by btrott (Parson) on Jun 09, 2000 at 22:57 UTC | |
|
RE: Establish Connection
by cleen (Pilgrim) on Jun 11, 2000 at 07:03 UTC |