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:
- mysql.pm -> C:\Perl64\lib\DBD - mysql\GetInfo.pm -> C:\Perl64\lib\DBD\mysql - mysql\INSTALL.pod -> C:\Perl64\lib\DBD\mysql
here is a stripped down code snippet of how i am using DBI
use DBI; my $url = sprintf('DBI:%s:%s:%s', $driver, $database, $hostname); my $dbh = DBI->connect( $url, $username, $password, {RaiseError => 1, AutoCommit => 1} )
when i run that code, i get the following error:
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
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.

thanks,

In reply to Issues with DBD::mysql - please help by drohr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.