Greetings Monks,
I had a version of DBD::mysql installed. I was an idiot and accidentally deleted the directory it was installed in. NP, right? I installed it via CPAN doing install DBD::mysql and ran the script I have been running for awhile.

However, now that script is erring with a "DBD::mysql::db do failed: The used command is not allowed with this MySQL version" error. I didn't change anything recently except I reinstalled the perl library. Is there some setting that I missed by installing via CPAN?

The other possibility is that in between when I last installed the DBD::mysql module and now, I did install a new MySQL version (5.0.67). I didn't replace the DBD::mysql module and everything worked fine up until now though. Maybe it picked up something in the new installation that changed how DBD::mysql got configured?

My MySQL server has the local_infile set to ON via a show variables command. My user has the FILE permission in the database. My my.cnf doesn't have anything for a client local_infile, but the script was working previously, so that suggests that it shouldn't be something with the MySQL configuration (though I did ask the admin for the box to edit that setting in).

The command I use is: $dbh->do("load data local infile '$file' into table $tablename");

Just wondering if anyone has a suggestion on what I can do while I'm waiting for the sysadmin to edit the my.cnf file in the hopes that fixes it. :\

In reply to DBD::mysql LOAD DATA INFILE by Ineffectual

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.