Hi,
I have a problem on connect to MYSQL database.
Below is my code:
When i execute my perl file, it show out:
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 5) line 3
Compilation failed in require at (eval 5) line 3.
Perhaps a module that DBD::mysql requires hasn't been fully installed at insertdata.pl line 6
I have put the DBD library in c:\Perl\lib\DBD and c:\perl\site\li b\DBD , but i the problem still persist.
The weird things that i found out whenever i run then "ppm install DBD::mysql" but it always time out.
Any one can help me on this? Thanks in advance.,,
I have a problem on connect to MYSQL database.
Below is my code:
Code:
use strict;
use warnings;
use DBI;
my $dbh = DBI->connect('DBI:mysql:MYDB', 'andres', '123'
) || die "Could not connect to database: $DBI::errstr";
$dbh->disconnect();
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 5) line 3
Compilation failed in require at (eval 5) line 3.
Perhaps a module that DBD::mysql requires hasn't been fully installed at insertdata.pl line 6
I have put the DBD library in c:\Perl\lib\DBD and c:\perl\site\li b\DBD , but i the problem still persist.
The weird things that i found out whenever i run then "ppm install DBD::mysql" but it always time out.
Any one can help me on this? Thanks in advance.,,
Comment