Hello,

I'm trying to use CDL with this configuration:

my $loader = Class::DBI::Loader->new( dsn => "dbi:mysql:keyshop:127.0.0.1", user => "user", password => "pass", namespace => "Data", debug => 1, );
When I run the script I get:
Couldn't require loader class "Class::DBI::Loader::mysql", "Can't loca +te object method "set_sql" via package "Class::DBI::mysql" at /usr/lib/perl5/vendor_perl/5.8.7/Class/DBI/mysql.pm line 58. Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/Class/DBI/Loader/mysql.pm line 8. Compilation failed in require at (eval 3) line 2. BEGIN failed--compilation aborted at (eval 3) line 2. " at /usr/lib/perl5/vendor_perl/5.8.8/Class/DBI/Loader.pm line 81.

I'm not sure what's wrong. This works on Class::DBI::Loader version 0.22. I did find a ticket on rt.cpan.org that said this error is the result of not having the Class::DBI::mysql installed, but I do have it installed. I have reinstalled it to be sure.


In reply to Class::DBI::Loader problems by rlb3

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.