drohr has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I am using activestate perl 5.16.3 on win7-64. This version of perl came with DBI, but it did not come with DBD::mysql. i used the ppm to search for DBD-mysql, but but it was not listed (other versions were there; csv, odbc, etc). so i went to cpan and downloaded the module from this link:
http://search.cpan.org/~capttofu/DBD-mysql-4.027/lib/DBD/mysql.pm
i extracted the files and copied them in the following directories:
thanks,
http://search.cpan.org/~capttofu/DBD-mysql-4.027/lib/DBD/mysql.pm
i extracted the files and copied them in the following directories:
here is a stripped down code snippet of how i am using DBI- mysql.pm -> C:\Perl64\lib\DBD - mysql\GetInfo.pm -> C:\Perl64\lib\DBD\mysql - mysql\INSTALL.pod -> C:\Perl64\lib\DBD\mysql
when i run that code, i get the following error:use DBI; my $url = sprintf('DBI:%s:%s:%s', $driver, $database, $hostname); my $dbh = DBI->connect( $url, $username, $password, {RaiseError => 1, AutoCommit => 1} )
i know the DBD-mysql files are in the correct paths, but it sounds like this module isnt installed correctly? what am i missing here? does DBD-mysql work with 5.16.3? i know that i have used that module in earlier versions of perl.install_driver(mysql) failed: Can't locate loadable object for module +DBD::mysql in @INC (@INC contains: ../ C:\Program Files (x86)\ActiveS +tate Komodo IDE 8\lib\support\dbgp\perllib c:/Perl64/site/lib c:/Perl +64/lib .) at (eval 31)[c:/Perl64/lib/DBI.pm:783] line 3. Compilation failed in require at (eval 31)[c:/Perl64/lib/DBI.pm:783] l +ine 3. Perhaps a module that DBD::mysql requires hasn't been fully installed
thanks,
|
---|
Back to
Seekers of Perl Wisdom