Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Could anyone tell me what are all the possiblities for this error? I tried the following to install the perl module. My operating system is Windows.install_driver(mysql) failed: Can't locate loadable object for module +DBD::mysql in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at + (eval 4) line 3 Compilation failed in require at (eval 4) line 3. Perhaps a module that DBD::mysql requires hasn't been fully installed
when i run the above command it is telling me as no missing packages to install. The code is:ppm install DBI::mysql
How should i proceed with the above issue? any thoughts or ideas will be of much helpful in this juncture.use strict; use warnings; use DBI; my $dbname="test_development"; my $dbh=DBI->connect("DBI:mysql:$dbname","root") || die("connection fa +ilure"); my $sth=$dbh->prepare("select * from tables"); $sth->execute(); while(my @row=$sth->fetchrow_array()){ print "id".$row[0]; print "name".$row[1]; print "age".$row[2]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl module DBI:mysql installation issues
by moritz (Cardinal) on Jul 07, 2008 at 11:08 UTC | |
by Anonymous Monk on Jul 07, 2008 at 11:25 UTC | |
by valavanp (Curate) on Jul 08, 2008 at 04:51 UTC | |
|
Re: perl module DBI:mysql installation issues
by syphilis (Archbishop) on Jul 07, 2008 at 12:42 UTC |