I have a problem on connect to MYSQL database.
Below is my code:
Expand|Select|Wrap|Line Numbers
- 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\lib\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.,,